LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Darryl Ross <linux@bachblue.com.au>
  To  : Nour Douchi" <ndouchi@hotmail.com>, <ndouchi@hotmail.com>
  Date: Thu, 17 Jun 1999 07:02:49 +0930

Re: Re:Apache trouble

Hey There,

To start off, I'm presuming you're using the version of Apache that comes
with RedHat 5.2 or above.

Instead of using the domain name in the <Virtualhost> tag, you use the IP
address. It gets the domain name from the ServerName directive. Try
changing:

<snip>

************************************************************

# NameVirtualHost Settings

NameVirtualHost 209.219.4.101

<VirtualHost www.battah.com>
ServerAdmin webmaster@battah.com
DocumentRoot /www/battah/public_html
ServerName battah.com
ErrorLog logs/battah.com-error_log
TransferLog logs/battah.com-access_log
</VirtualHost>

<VirtualHost www.douchi.com>
ServerAdmin webmaster@douchi.com
DocumentRoot /www/douchi/public_html
ServerName battah.com
ErrorLog logs/douchi.com-error_log
TransferLog logs/douchi.com-access_log
</VirtualHost>

************************************************************

to this:

************************************************************

# NameVirtualHost Settings

NameVirtualHost 209.219.4.101

<VirtualHost 209.219.4.101>
ServerAdmin webmaster@battah.com
DocumentRoot /www/battah/public_html
ServerName www.battah.com
ErrorLog logs/battah.com-error_log
TransferLog logs/battah.com-access_log
</VirtualHost>

<VirtualHost 209.219.4.101>
ServerAdmin webmaster@douchi.com
DocumentRoot /www/douchi/public_html
ServerName www.douchi.com
ErrorLog logs/douchi.com-error_log
TransferLog logs/douchi.com-access_log
</VirtualHost>

************************************************************

Cheers
Dazz

-- 
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page