Index: [Article Count Order] [Thread]

Date:  Wed, 5 Dec 2007 12:48:10 -0800
From:  "Ken Marcus - Precision Web Hosting, Inc." <kenmarcus (at mark) precisionweb.net>
Subject:  [coba-e:11365] Re: IP changes for SSL
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <170501c83780$265b0520$6700a8c0@OfficeKen>
References:  <683F5FB5E2C08E4A8FE8D499A890A3EA0378B7 (at mark) mainserver.mainline.local>
X-Mail-Count: 11365


----- Original Message ----- 
From: "Colin Jack" <colin (at mark) mainline.co.uk>
To: <coba-e (at mark) bluequartz.org>
Sent: Wednesday, December 05, 2007 9:04 AM
Subject: [coba-e:11364] IP changes for SSL


> We have a BQ server behind a firewall using 1 to 1 NAT for external IP
> addresses.
>
> Currently we have a number of vhosts on the server all using the same
> shared IP 192.168.10.130
> We have a site that now needs an SSL cert, so I changed the IP to
> 192.168.10.131 on that site and created a NAT forward from the firewall
> for a different external IP.
>
> The external IP forwards to the server from the firewall fine
> The server has 192.168.10.131 as an alias on the primary interface
> The httpd vhosts file looks fine
>
> But apache cannot find the site.
>
> I have trawled through the mailing list but cannot find anything.
>
> Anybody got a clue?
>
> Thanks
>
> Colin
>
>
>

Colin

You might try setting the vhost to listen for both IPs the public and the 
Natted IP.

Do something like
cp  /etc/httpd/conf/vhosts/site2 /etc/httpd/conf/vhosts/site2privateIP

Then edit the IPs in /etc/httpd/conf/vhosts/site2privateIP

Then add something like the line below to your  /etc/httpd/conf/httpd.conf
Include etc/httpd/conf/vhosts/site2privateIP


So, it will then listen for both IPs.


But It might be that you cannot do SSL that way as apache only knows what 
SSL cert to use by the IP address.


----
Ken Marcus
Ecommerce Web Hosting by
Precision Web Hosting, Inc.
http://www.precisionweb.net