VirtualHost -- all resolving to one :-(

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 / ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-22-2003
Noydb
 
Posts: n/a
Default VirtualHost -- all resolving to one :-(

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.

  #2 (permalink)  
Old 07-22-2003
Jim Fischer
 
Posts: n/a
Default Re: VirtualHost -- all resolving to one :-(

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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0