Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes https request throws 503 while http works Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "https request throws 503 while http works" Watch "https request throws 503 while http works" New topic

https request throws 503 while http works

harib raghu

Joined: Sep 18, 2011
Posts: 5
We got a new VPS account and i installed SSL on it. SSL was installed on the same IP as the server..
We have an apache fronting the tomcat. PROBLEM is if i try ... it works
but if i try i get ....
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Additionally, a 503 Service Temporarily Unavailable error was encountered while trying to use an ErrorDocument to handle the request.

however please note that the HTTPS shows as green (i.e)ssl works and also checked in ...

Can some one let me know what the problem might be???
Note: thou my hosting company gave me another static IP for SSL i did not use it , becoz in that case i totally get SSL_error..etc.. so i used
my same server ip...
Rob Spoor

Joined: Oct 27, 2005
Posts: 20269

Welcome to the Ranch!

I'll move this thread to our Tomcat forum, as I'll think you'll have more success over there.

How To Ask Questions How To Answer Questions
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

This may be a challenge. When you do an https request, the default port used in 443, instead of port 80, like standard HTTP uses. I think your problem is that you don't have a port 443 connection handler set up in Apache.

There are currently 2 different ways for Apache to pipeline requests to Tomcat: the older mod_jk way and the newer mod_proxy way. So if you could give us maybe the virtualhost definition from your Apache configuration it would help a lot. Please use the "Code" button to wrap formatting tags around your configuration data, though, so our message formatter won't make a mess of it!

An IDE is no substitute for an Intelligent Developer.
harib raghu

Joined: Sep 18, 2011
Posts: 5
I use the mod JK....jk_conf and then workers properties file for the tomcat apache communication.
I see my virtual host and apache forward and the tomcat receiver(i mean port configs) all seem ok.
However here are the config files...
I am placing the main parts only here...........

TOMCAT SERVER.XML main parts...
harib raghu

Joined: Sep 18, 2011
Posts: 5
any help is appreciated..still could n't crack this
I agree. Here's the link:
subject: https request throws 503 while http works
It's not a secret anymore!