Oh no, not another virtual host question.
Ok, I've done searches on the news group, and I've seen that other people
have add the problem I'm having, but I can't figure out what I'm doing
wrong.
I'm setting up Apache with a virtual host directive. However, when I try to
browse to my virtual host, Apache tries to serve
/usr/local/htdocs/index.html. Which, of course, doesn't exist, and is not
defined anywhere in httpd.conf (and there is not a rogue httpd.conf hiding
somewhere). A syntax check with apachectl -t runs fine, and apache -S a
virtual host is setup, but it's not working. Anyway, here are the revelant
portions of my httpd.conf:
--------------------------------------------------------------------------- #DocumentRoot "/usr/local/share/apache/htdocs" # <Directory "/home/www/mjjtech.net/"> ScriptAlias /cgi-bin/ "/home/www/mjjtech.net/cgi-bin/" </VirtualHost> When I point my browser at www.mjjtech.net, I get a "This page cannot be Thanks, Michael
-----------
ServerName 208.42.18.182
...
NameVirtualHost 208.42.18.182
# Virtual host definition -- www.mjjtech.net
#
<VirtualHost 208.42.18.182>
ServerName www.mjjtech.net
DocumentRoot /home/www/mjjtech.net
ServerAlias mjjtech.net *.mjjtech.net
ErrorLog /var/log/apache/www.mjjtech.net-error_log
CustomLog /var/log/apache/www.mjjtech.net-access_log common
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/www/mjjtech.net/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
#end mjjtech.net
---------------------------------------------------------------------------
-----------
The output of apache -S is:
VirtualHost configuration:
208.42.18.182:80 is a NameVirtualHost
default server www.mjjtech.net
(/etc/apache/httpd.conf:986)
port 80 namevhost www.mjjtech.net
(/etc/apache/httpd.conf:986)
found." error. /var/log/apache/error_log has the message "File does not
exist: /usr/htdocs." Though given my virtual host directive, I would expect
the message to be in /var/log/apache/www.mjjtech.net-error_log, if the
virtual host was being resolved correctly. Clearly it is not. I've been
banging my head against the wall all morning. What am I missing?