Sunday, September 14, 2014

apache 2.2 - Apache2 Permission denied: access to / denied

after installing and starting apache2 i can't open the website and got the error "Forbidden
You don't have permission to access / on this server.
" I tried some different options in the httpd.conf, but nothing helped me solving this problem.



All permissions for every directory are "drwxr-xr-x".
The directory /var/www contains a file names index.html with the same permissions.
Please do not wonder, the time in the errorlog is not correctly.
I have no idea what the problem is, i hope someone can help me.



my httpd.conf:




ServerRoot "/etc/apache2"
Listen 80

User daemon
Group daemon

ServerAdmin you@example.com
DocumentRoot "/var/www"


Options FollowSymLinks
AllowOverride None
Order Deny,Allow
Deny from all


Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all



DirectoryIndex index.html


Order allow,deny
Deny from all
Satisfy All

ErrorLog /var/apache2/logs/error_log


LogLevel warn



AllowOverride None
Options None
Order allow,deny
Allow from all



DefaultType text/plain


TypesConfig /etc/apache2/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz


SSLRandomSeed startup builtin

SSLRandomSeed connect builtin



my error_log:


[Sat Jan 01 00:50:26 2000] [notice] caught SIGTERM, shutting down
[Sat Jan 01 00:50:33 2000] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Jan 01 00:50:34 2000] [notice] Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.8j configured -- resuming normal operations
[Sat Jan 01 00:50:36 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied

[Sat Jan 01 00:50:37 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:37 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:37 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:38 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:38 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...