[CLUE-Tech] Apache: "Forbidden. You don't have permission to access / on this server"
jason at matchingmoms.com
jason at matchingmoms.com
Tue Dec 18 18:51:35 MST 2001
I'm trying to set up virtual hosting with Apache. Whichever of my virtual
hosts I attempt to reach, I receive this error:
"Forbidden. You don't have permission to access / on this server."
Here's a log entry:
192.168.0.200 - - [15/Dec/2001:05:54:12 +0000] "GET / HTTP/1.1" 403 287
Here's relevant lines from my httpd.conf:
ServerType standalone
ServerRoot "/etc/httpd"
LockFile /var/lock/httpd.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /var/run/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 150
MaxRequestsPerChild 100
BindAddress *
Include conf/modules.conf
User apache
Group apache
ServerAdmin root at localhost
ServerName abigail
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options Indexes Includes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
UserDir public_html
DirectoryIndex index.html index.htm index.shtml index.php index.php4
index.php3 index.cgi
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
UseCanonicalName On
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog /var/log/httpd/error_log
LogLevel debug
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/httpd/access_log combined
ServerSignature On
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
IndexOptions FancyIndexing
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
LanguagePriority en fr de
<IfModule mod_php4.c>
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps
</IfModule>
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml
</IfModule>
AddType application/x-tar .tgz
AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler imap-file map
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
<IfModule mod_perl.c>
Alias /perl/ /var/www/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
</IfModule>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from .powerpull.net
</Location>
Alias /doc/ /usr/share/doc/
<Location /doc>
order deny,allow
deny from all
allow from localhost .localdomain
Options Indexes FollowSymLinks
</Location>
Include conf/virtual_hosts.conf
Include conf/mod_perl.conf
Finally, in conf/virtual_hosts.conf:
NameVirtualHost 192.168.0.200
<VirtualHost 192.168.0.200>
ServerName www.powerpull.net
DirectoryIndex index.html index.htm index.shtml index.php index.php4
index.php3 index.cgi
Options Indexes
ServerAdmin webmaster at powerpull.net
DocumentRoot /home/powerpull/html
ErrorLog /var/log/httpd/powerpull.net-error_log
CustomLog /var/log/httpd/powerpull.net-access_log common
</VirtualHost>
<VirtualHost 192.168.0.200>
ServerName www.matchingmoms.com
DirectoryIndex index.html index.htm index.shtml index.php index.php4
index.php3 index.cgi
Options Indexes
ServerAdmin webmaster at matchingmoms.com
DocumentRoot /home/matchingmoms/html
ErrorLog /var/log/httpd/matchingmoms.com-error_log
CustomLog /var/log/httpd/matchingmoms.com-access_log common
</VirtualHost>
<VirtualHost 192.168.0.200>
ServerName www.astroconsulting.net
DirectoryIndex index.html index.htm index.shtml index.php index.php4
index.php3 index.cgi
Options Indexes
ServerAdmin webmaster at astroconsulting.net
DocumentRoot /home/astroconsulting/html
ErrorLog /var/log/httpd/astroconsulting.net-error_log
CustomLog /var/log/httpd/astroconsulting.net-access_log common
</VirtualHost>
More information about the clue-tech
mailing list