1748204 Members
4041 Online
108759 Solutions
New Discussion юеВ

Apache SSL hangs

 
SOLVED
Go to solution
Garnett Yeatts
Occasional Advisor

Apache SSL hangs

I have installed HP Apache 2.0.43 on a D380 server. It hangs if I try to start it in SSL mode (using apachectl startssl) but works OK non-SSL (using apachectl start). No messages to the log files, no errors, the command just hangs.

Any ideas or help would be appreciated.
13 REPLIES 13
Steven E. Protter
Exalted Contributor

Re: Apache SSL hangs

Check /etc/services

make sure nothing is on the ssl port

check netstat -an

make sure nothing is on the ssl port


I'd think you'd get an error under those circumstances.

There is a guide on apache ssl issues at http://www.apache.org

There is also documentation in the httpd.conf file. Its worth reading, becuase its verbose and helps me with problem diagnosis.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Garnett Yeatts
Occasional Advisor

Re: Apache SSL hangs

Thanks for the quick reply.

I'm sure there isn't anything on 443. I get the same problem when I try to run Jakarta Tomcat ssl on port 8443. Both Apache and Tomcat run fine on port 80 and 8080, but neither run in secure mode (on 443 and 8443).

I wondered if some kind of reverse lookup or domain lookup is going on when running in SSL mode - this server is not configured for DNS and does not have a domain set, but I have tested both of those items on another server by turning off NIS Client and unsetting the domainname and rebooting, and the web servers run OK in SSL mode.
U.SivaKumar_2
Honored Contributor

Re: Apache SSL hangs

Hi,

Can you attach your httpd.conf here ?

Have you checked the sanity of SSL certificates used ?

Are you trying Virtual hosting ?

Also check by running this command
apachectl configtest

regards,

U.SivaKumar





Innovations are made when conventions are broken
Steven E. Protter
Exalted Contributor

Re: Apache SSL hangs

A few more points.

I think Apache 2.x is a little cutting edge. I'm still using 1.3.X myself.

You can run some telnet tests on the local server and see what you get

telnet hostname 445
telnet hostname 80
telnet hostname 8445

You should get some hard to read web content. If you get a connection refused message, something else owns the socket.

If you get some dialog with something that's not your apache server, same issue.

I might have led you to believe that if there is a listing in /etc/services there must be something using the port and if not, the ports not in use.

Thats not true. ORacle doesn't bother to update /etc/servcies when you install their ias product even though it uses 7777 and 9001 in a base configuration.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Garnett Yeatts
Occasional Advisor

Re: Apache SSL hangs

Thanks.

I was out of the office yesterday, so I was not able to reply to the responses until today.

Apachectl config check returns Syntax OK.

We verified no other processes are using port 443. We are able to run Apache on 443 without loading SSL module, but when we start Apache using SSL it hangs when loading the SSL module.

I have attached both the hpptd.conf file. I will also attach the ssl.conf file in a separate reply.
Garnett Yeatts
Occasional Advisor

Re: Apache SSL hangs

SSL Conf File attached.
Steven E. Protter
Exalted Contributor

Re: Apache SSL hangs

I can't look at this until Sat. night. sorry. If your issue isn't sovled I'll try and help then. I'll also try startssl on my sever just to see what happens.

No pts required, just don't want you to think I forgot you.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: Apache SSL hangs

Have not forgotten about you. itrc was down. Still working on your solution.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Garnett Yeatts
Occasional Advisor

Re: Apache SSL hangs

Thanks for continuing to look at this. No new developments from our end.