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

Re: Network domain vs Virtual domain in httpd



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 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 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 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 mitchellracin com
    DocumentRoot /var/www/brad
    ServerName mitchellracin.com
    ErrorLog logs/mitchellracin-error_log
    CustomLog logs/mitchellracin-access_log common
</VirtualHost>



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