This is a discussion on VirtualHost -- all resolving to one :-( within the Apache Web Server forums, part of the Web Server and Related Forums category; Okay, I gotta bug you folks. I am trying to set up virtual hosting for two websites on one machine / ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Okay, I gotta bug you folks.
I am trying to set up virtual hosting for two websites on one machine / one IP. When I have an outsider surf to my machine, using any of the three possible names he arrives there. However, he arrives at the same page, no matter where he targets. From this, I gotta assume the problem is on my end, not DNS. Here is the relevant stuff from /etc/httpd/conf/httpd.conf ### Virtual Hosts ### # We include different templates for Virtual Hosting. Have a look in the # vhosts directory and modify to suit your needs. #Include conf/vhosts/Vhosts.conf #Include conf/vhosts/DynamicVhosts.conf #Include conf/vhosts/VirtualHomePages.conf ServerName genesis.organic-earth.com NameVirtualHost * <VirtualHost *> ServerName organic-earth.com #ServerAlias organic-earth.com *.organic-earth.com DocumentRoot /var/www/html/OE </VirtualHost> <VirtualHost *> ServerName canaday.us #ServerAlias canaday.us *.canaday.us DocumentRoot /var/www/html/CANADAY </VirtualHost> <VirtualHost *> ServerName cannaday.us #ServerAlias cannaday.us *.cannaday.us DocumentRoot /var/www/html/CANADAY </VirtualHost> I have probably got things pretty badly mangled but so nearly as I can tell, this is what the Apache docs say to do ( http://httpd.apache.org/docs-2.1/vhosts/examples.html ) SOMETHING is shunting everything to the OE site and I haven't been able to puzzle out what is doing it / where it is happening. Is there another config file whacking me at the knees? Bill -- Zone 5b (Detroit, MI) I do not post my address to news groups. |
|
|||
|
Noydb wrote:
> Okay, I gotta bug you folks. > > I am trying to set up virtual hosting for two websites on one machine / one > IP. When I have an outsider surf to my machine, using any of the three > possible names he arrives there. However, he arrives at the same page, no > matter where he targets. > > From this, I gotta assume the problem is on my end, not DNS. > > Here is the relevant stuff from /etc/httpd/conf/httpd.conf > > ### Virtual Hosts > ### > # We include different templates for Virtual Hosting. Have a look in the > # vhosts directory and modify to suit your needs. > #Include conf/vhosts/Vhosts.conf > #Include conf/vhosts/DynamicVhosts.conf > #Include conf/vhosts/VirtualHomePages.conf > > ServerName genesis.organic-earth.com > NameVirtualHost * > > <VirtualHost *> > ServerName organic-earth.com > #ServerAlias organic-earth.com *.organic-earth.com > DocumentRoot /var/www/html/OE > </VirtualHost> > > <VirtualHost *> > ServerName canaday.us > #ServerAlias canaday.us *.canaday.us > DocumentRoot /var/www/html/CANADAY > </VirtualHost> > > <VirtualHost *> > ServerName cannaday.us > #ServerAlias cannaday.us *.cannaday.us > DocumentRoot /var/www/html/CANADAY > </VirtualHost> > > > I have probably got things pretty badly mangled but so nearly as I can tell, > this is what the Apache docs say to do ( > http://httpd.apache.org/docs-2.1/vhosts/examples.html ) > > SOMETHING is shunting everything to the OE site and I haven't been able to > puzzle out what is doing it / where it is happening. Is there another > config file whacking me at the knees? 1) I assume you restarted the httpd server after you edited the 'httpd.conf' file. (Just checking, not that *I've* ever forgotten to do this...) 2) What do you get when you run the following: [root]# httpd -t -D DUMP_VHOSTS 3) What kinds of error messages (if any) are you seeing in your 'error_log' file? -- Jim To reply by email, remove "link" and change "now.here" to "yahoo" jfischer_link5809{at}now.here.com |