[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Apache Virtual Hosts Question



>I have a RH5.2 server, Kernel 2.0.36, apache 1.3.3.
>The server has two NIC's, one for the outside world, one a private
>address for the LAN.
>Apache is already configured to support 3 different domains on the WAN
>address.  httpd.conf has the following:
>NameVirtualHost 203.xx.xx.xxx
>
><VirtualHost www.domain1.com.au>
...
></VirtualHost>

>The question is, I now want a different server name for the internal ip
>address, so I can run some intranet pages and I am not sure how?
>
>Can I simply add another NameVirtualHost 10.x.x.x entry followed by the
>new VirtualHost details with say a server name of
>intranet.domain1.com.au or how do I do it?

2 ways :
- create a second instance of httpd that will be bound to your internal ip
only, so external users will see only the "external" server while internal
will see the internal server with its internal address and the external
with its external address. very secure.

- create IP-based virtual hosts as explained here
http://httpd.apache.org/docs/bind.html and here
http://httpd.apache.org/docs/vhosts/ip-based.html

hth


			- * - * - * - * - * - * -
Si nous avons chacun un objet et que nous les echangeons, 
   nous avons encore chacun un objet.
Si nous avons chacun une idee et que nous les echangeons,
   nous avons alors chacun deux idees.

Thierry ITTY
eMail : Thierry Itty Besancon org		FRANCE





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]