[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Apache Virtual Hosts Question
- From: "Ken Cole" <kcole chapav com au>
- To: <redhat-list redhat com>
- Subject: Apache Virtual Hosts Question
- Date: Fri, 31 Aug 2001 15:35:26 +1000
G'Day,
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>
ServerAdmin webmaster domain1 com au
DocumentRoot /home/httpd/html/domain1
ServerName www1.domain1.com.au
ErrorLog logs/domain1.com.au-error_log
TransferLog logs/domain1.com.au-access_log
</VirtualHost>
<VirtualHost www.domain2.com.au>
ServerAdmin webmaster domain1 com au
DocumentRoot /home/httpd/html/domain2
ServerName www.domain2.com.au
ErrorLog logs/domain2.com.au-error_log
TransferLog logs/domain2.com.au-access_log
</VirtualHost>
<VirtualHost www.domain3.com.au>
ServerAdmin webmaster domain1 com au
DocumentRoot /home/httpd/html/domain2
ServerName www.domain3.com.au
ErrorLog logs/domain3.com.au-error_log
TransferLog logs/domain3.com.au-access_log
</VirtualHost>
Yes, domain2 & domain3 share the same web pages.
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?
Thanks
Ken Cole
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]