With the following vhost.conf, I'm getting an error "DocumentRoot must be a directory", and the two document roots I'm using do, in fact, exist. Does anyone know why Apache2 would think they are not directories?
NameVirtualHost * <VirtualHost *> ServerName www.ironfroggy.com ServerAlias ironfroggy.com www.ironfroggy.com DocumentRoot /var/www/www-ironfroggy-com/ </VirtualHost>
<VirtualHost *> ServerName sftp.ironfroggy.com DocumentRoot /var/www/sftp-ironfroggy-com/ </VirtualHost>
And, just for good measure: drwxr-xr-x 6 root root 4096 May 15 14:02 sftp-ironfroggy-com drwxr-xr-x 6 calvin root 4096 May 11 15:55 www-ironfroggy-com
I'm guessing that you haven't defined /var/www/* as directories and given them permissions. In my Apache1 installtion I have these lines in commonapache.conf.
#Restricted set of options <Directory /> Options -All -Multiviews AllowOverride None Order deny,allow Deny from all </Directory>
So for each vhost I have to define a directory and give it the access I want. Here's the config for one of my vhosts.
[EMAIL PROTECTED] kashani $ more /etc/apache/conf/vhosts/badapple.net.conf
# $Header: /home/cvsroot/gentoo-x86/net-www/apache/files/conf/Vhosts.conf,v 1.2 2002/05/04 23:23:01
woodchip Exp $
<VirtualHost *> ServerName badapple.net ServerAlias www.badapple.net
DocumentRoot /var/www/badapple.net/htdocs ScriptAlias /cgi-bin/ /var/www/badapple.net/cgi-bin/
TransferLog /var/log/apache/badapple.net-access.log RefererLog /var/log/apache/badapple.net-referer.log ErrorLog /var/log/apache/badapple.net-error.log
<Directory "/var/www/badapple.net/htdocs"> Options -Indexes -FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory>
<Directory "/var/www/badapple.net/cgi-bin"> AllowOverride All Options ExecCGI Order allow,deny Allow from all </Directory>
</VirtualHost>
kashani -- gentoo-user@gentoo.org mailing list