I installed Slackware 10 and I want to have 2 virtualhosts on my coomputer.
I give you the settings in httpd.conf wich I thinks are relevant to my problem.
Code:
ServerName server.com
DocumentRoot /var/www/htdocs
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
</IfModule>
NameVirtualHost 11.22.33.44:80
<VirtualHost 11.22.33.44:80>
ServerAdmin blah@server.com
DocumentRoot /var/www/server2
ServerName server2
ErrorLog /var/log/apache/server2_error_log
CustomLog /var/log/apache/server2_access_log combined
DirectoryIndex index.php index.html
</VirtualHost>
Now when I access server.com through my browser it shows the page from server2 and the URL in the browser remains the same (
http://server.com). server2 works corectly (when I access
http://server2 with my browser the corect page is displayed).
The settings in the DNS are correct. "host server2" gives me the corect IP and host server.com gives the same IP.
What gives? Is the apache wich comes with Slackware broken?