Network domain vs Virtual domain in httpd
Dennis Gilmore
dennis at ausil.us
Sun May 2 02:02:02 UTC 2004
Once upon a time Sunday 02 May 2004 11:53 am, Mike Chambers wrote:
> Running FC2T3 here (fresh install)...
>
> I have a domain name that is part of my home network that is
> registered. It worked just fine when trying to access it via http and
> getting the Fedora test page.
>
> I have now added a new registered domain as a virtual host and it works
> with no problems. Except now, the network domain name seems to show the
> same index page that my virtual host uses.
>
> Network domain..
> http://www.netlyncs.com
>
> Virtual host..
> http://www.mitchellracin.com
you need to setup a virtual host for both domains i usually setup one for www
and one for root domain cause i hardley ever type in the www and i get
annoyed when it doesnt work
<VirtualHost *:80>
ServerAdmin webmaster at netlyncs.com
DocumentRoot /var/www/html
ServerName www.netlyncs.com
ErrorLog logs/netlyncs-error_log
CustomLog logs/netlyncs-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster at netlyncs.com
DocumentRoot /var/www/html
ServerName netlyncs.com
ErrorLog logs/netlyncs-error_log
CustomLog logs/netlyncs-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster at mitchellracin.com
DocumentRoot /var/www/brad
ServerName www.mitchellracin.com
ErrorLog logs/mitchellracin-error_log
CustomLog logs/mitchellracin-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster at mitchellracin.com
DocumentRoot /var/www/brad
ServerName mitchellracin.com
ErrorLog logs/mitchellracin-error_log
CustomLog logs/mitchellracin-access_log common
</VirtualHost>
More information about the fedora-test-list
mailing list