Forum

Vhosts

Guest 5
1 February 2007, 08:46
I'm having a problem with virtual hosts.




# DEFAULT WEBSITE
# It is wise to use your IP address as the hostname of the default website
# and give it a blank webpage. By doing so, automated webscanners won't find
# your possible vulnerable website.
#


Hostname = 127.0.0.1


# VIRTUAL HOSTS
# Use a VirtualHost section to declare the websites you want to host.
#
#VirtualHost {
# Hostname = http://example1.serveftp.com
# WebsiteRoot = /var/www/test1/public
# StartFile = index.html
# AccessLogfile = /var/www/test1/log/access.log
# ErrorLogfile = /var/www/test1/log/error.log
# ExecuteCGI = yes
# FastCGI = PHP4
#}


I've removed everything in the default website section. In the virtual host section, i've specifed the domain which exists. I've specified the site root and the start file.

The confusing thing is, when I enter in
http://example1.serveftp.com in the browser. I get the default, "You have install hiawatha etc. etc.."

How do I discard the first default host and have the config just read from the virtual hosts.
Guest
1 February 2007, 19:46
Actually, it would be really nice if you could post or email me your httpd.conf that you use for the hiawatha website.

So I can see all the options in the manual in use, and how they are used, and where they go.

That would be awesome.

email: yo_muffinman@hotmail.com
This topic has been closed.