Apache Server configuration support - Re: everything bringing up first virtual host?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > October 2007 > Re: everything bringing up first virtual host?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: everything bringing up first virtual host?
Mike

2007-10-15, 1:28 pm


"HansH" <hansh@invalid.invalid> wrote in message
news:47135321$0$237$e4fe514c@news.xs4all.nl...
> "Mike" <me@privacy.net> schreef in bericht
> news:13h6crbci2krn25@corp.supernews.com...
> Using IP to adress server (via doamin forwarder)?
> HTTP/1.0 forced in browser or proxy?
>
> Show config snippet and method of access, best using real doainnames.
>
> HansH



Example of the first 2. I have changed the domains.

<VirtualHost *:80>
DocumentRoot /usr/local/apache/share/site1
ServerName www.site1 .com
DirectoryIndex index.htm index.html index.php
</VirtualHost>

<VirtualHost *:80>
DocumentRoot /usr/local/apache/share/site2
ServerName www.site2 .com
DirectoryIndex index.htm index.html index.php
</VirtualHost>


If i go to site1 .com or site2 .com it brings up site1 because this is the
first virtualhost directory in my httpd.conf file. IP address does the
same.

I have 10 virtual host domains/websites setup all with their own directors.
All 10 domains will always bring up what ever virtual host document route
directory appears first in the httpd.conf file.





Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com