Forum

Virtual Host isn't coming up.

tmc
9 November 2007, 21:30
I have gone over my config file a dozen times. The virtual host does not seem to be working, whenever I connect to the host, it drops be to the default web root....

ServerId = 33:33
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log

Binding {
Port = 80
}

CGIhandler = /usr/bin/php-cgi:php
CGIhandler = /usr/bin/perl:pl
CGIhandler = /usr/bin/python:py
CGIextension = cgi
TimeForCGI = 5

Hostname = ip.cen.sor.ed
WebsiteRoot = /var/www/hiawatha
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
ExecuteCGI = yes

VirtualHost {
Hostname = www.censored.com
WebsiteRoot = /web/censored/www
StartFile = index.php
AccessLogfile = /web/censored/log/www/access.log
ErrorLogfile = /web/censored/log/www/error.log
ExecuteCGI = yes
}


any ideas?
Hugo Leisink
9 November 2007, 21:38
Your configfile looks oke. Maybe you have some 'invisible' characters like tab or a non-Unix EOL behind the Hostname in the VirtualHost section? Zip your httpd.conf and e-mail it to hugo at leisink dot net so I can verify it for you.
n0doze
3 February 2008, 06:03
Was this situation ever resolved? and if so what was the cause of the problem. I seem to have my virtual host setup correctly copared to tmc's, however I cannot seem to get them to work. I'f you would like to see the conf that would be fine.
n0doze
3 February 2008, 07:00
NM, it was a configuration error in djbdns on my part.
Hugo Leisink
3 February 2008, 09:16
I never recieved a zipped version of your configuration file. Therefor I was not able to find the cause of the problem. But it's good to hear it has been solved now. Enjoy Hiawatha
This topic has been closed.