Forum Moderators: phranque

Message Too Old, No Replies

Multiple instances of Apache2 & mod_ssl

on one machine with multiple IP addresses

         

ckarg

8:39 am on Aug 5, 2005 (gmt 0)

10+ Year Member



I'm currently running three instances of Apche2 on one FreeBSD machine. Each instance runs its own web site on a separate IP address, and they have distinct DocumentRoots and httpd.confs, etc..

One instance is configured with mod_perl and mod_ssl, making it quite "heavy". It runs a public access website. The second instance is configured with mod_php4, and the third instance with only mod_cgi. Instances 2&3 run extranet applications with a small audience.

All of these have been in operation with the above configuration for over a year without issue.

I now want to add mod_ssl to instance 2, but have failed in all attempts. If instance 2 runs as the only instance, the setup is quite happy to serve https requests (i.e. the httpd.conf/ssl.conf for instance 2 seems to work by itself). When I start instance 2 with instance one running mod_ssl, instance 2 behaves as if -DSSL hasn't been set. Its not even listening for requests on port 443 (sockstat/netstat), and there's no error message in the logs.

There appears to be some issue with running two instances of Apache2 both using mod_ssl (and separate certificates).

Does anyone have experience in getting this to work? Or suggestions on what I can try?

Any help is greatly appreciated!
Christian

ChadSEO

2:25 pm on Aug 5, 2005 (gmt 0)

10+ Year Member



ckarg,

Are both instances of Apache2 listening for secure connections on port 443? This would make the second instance fail to start.

ckarg

10:06 am on Aug 9, 2005 (gmt 0)

10+ Year Member



Yes - they are both listening on port 443, although on different IP addresses. The first instance is listening on x.x.x.7:443, and the second instance should listen on x.x.x.8:443.

Are you saying there would be a conflict if the port numbers are the same even on different IP addresses?

All of this is however running on one machine. The network cards has mutiple IP addresses (via alias).