Apache problem with a local multiside Drupal
Hi there,
I tried to get al local Drupal multiside installation to work and read all the articles about it in the "beyond the basics" documentation. But somehow I can't get my apache to manage the different vhosts. This is what i did:
Win XP with a XAMPP
In the hosts file I but
127.0.0.1 localhost
127.0.0.1 drupal
127.0.0.1 testin the httpd-vhosts.conf for apache I put
<VirtualHost *:80>
ServerName drupal
DocumentRoot "D:/xampp/htdocs/drupal"
</VirtualHost>
<VirtualHost *:80>
ServerName test
DocumentRoot "D:/xampp/htdocs/test"
</VirtualHost>But when I try typing test in my browser allways beeing directed to the first vhost (drupal). I tried it with only different index.html files in the specific directory and every time only the one in the first specified vhost shows up. I know the the fist vhost is used as a default for any other name that is not specified. But it did it in both the hosts and the httpd-vhosts.conf file.
So if anybody can give me a hint what I did wrong I would be very thankful.
smartypants

An Apache issue
Nothing really to do with Drupal, just about getting Apache virtual hosts working.
http://httpd.apache.org/docs/2.2/vhosts/
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
http://httpd.apache.org/docs/2.2/mod/core.html#namevirtualhost
Just a guess, but do you have a
NameVirtualHostdirective set in your Apache config?--
Anton
Yes you are right, apache issue.
Bump head in wall (several times).
yes it was the missed uncommenting of
NameVirtualHost *.80.It was my first time messing with this things so i focued too much on the settings of the specific vhosts. But I missed to tell apache thet I want to use namebased vhosts, and lost of em not just one.
So removing the # in front of
NameVirtualHost *.80in thehttpd-vhosts.conffile did the thing.Thanks much for the help here Anton.
smartypants
just a little smarter
Cool :)
Glad it worked.
--
Anton