-   Linux - Networking (
-   -   Apache 403 Permissions (

Boffy 08-19-2004 07:01 PM

Apache 403 Permissions
OK, when i try to load apache i get

You don't have permission to access / on this server.

unless the DocumentRoot is set to /var/www/html/

Httpd2.conf(without comments):

ServerRoot /etc/httpd/2.0
PidFile /var/run/
ErrorLog logs/error_log
LogLevel warn
DocumentRoot /home/server

LoadModule access_module        modules/
LoadModule auth_module                modules/
LoadModule auth_anon_module        modules/
##LoadModule auth_dbm_module        modules/
LoadModule auth_digest_module        modules/
##LoadModule charset_lite_module        modules/
##LoadModule case_filter_module        modules/
##LoadModule case_filter_in_module        modules/
##LoadModule ext_filter_module        modules/
LoadModule include_module        modules/
LoadModule log_config_module        modules/
LoadModule logio_module                modules/
LoadModule env_module                modules/
##LoadModule mime_magic_module        modules/
##LoadModule cern_meta_module        modules/
LoadModule expires_module        modules/
LoadModule headers_module        modules/
LoadModule usertrack_module        modules/
LoadModule setenvif_module        modules/
LoadModule mime_module                modules/
LoadModule status_module        modules/
LoadModule autoindex_module        modules/
LoadModule asis_module                modules/
LoadModule info_module                modules/
LoadModule cgi_module                modules/
LoadModule vhost_alias_module        modules/
LoadModule negotiation_module        modules/
LoadModule dir_module                modules/
LoadModule imap_module                modules/
LoadModule actions_module        modules/
LoadModule userdir_module        modules/
LoadModule alias_module                modules/
LoadModule rewrite_module        modules/

Include /etc/httpd/conf.d/*.conf
Include conf/commonhttpd.conf

    Listen 8080
    Listen 80

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^proxy:.*  -  [F]
    RewriteRule ^(.*\/perl\/.*)$  http://%{HTTP_HOST}:8200$1 [P]
    RewriteRule ^(.*\/cgi-perl\/.*)$  http://%{HTTP_HOST}:8200$1 [P]

<IfModule mod_log_config.c>
CustomLog logs/access_log combined env=!VLOG
CustomLog "|/usr/sbin/advxsplitlogfile" vhost env=VLOG

Include conf/vhosts/Vhosts.conf

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

<IfModule prefork.c>
StartServers        5
MinSpareServers      5
MaxSpareServers    10
MaxClients        150
MaxRequestsPerChild  0

<IfModule worker.c>
StartServers        2
MaxClients        150
MinSpareThreads    25
MaxSpareThreads    75
ThreadsPerChild    25
MaxRequestsPerChild  0

<IfModule perchild.c>
NumServers          5
StartThreads        5
MinSpareThreads      5
MaxSpareThreads    10
MaxThreadsPerChild  20
MaxRequestsPerChild  0

david_ross 08-20-2004 01:42 PM

What are the permissions on /home/server?

Is the directory and files readable by apache?

Do you have an index.html file in that directory?

Boffy 08-21-2004 11:37 AM

Owner - Can View and Modify
Group - Can View
Others - Can View

User: apache
Group: apache

and yes there is a index.html.

david_ross 08-21-2004 11:51 AM

You will need to have the execute bit set on the directories as well.

Boffy 08-21-2004 12:00 PM

How do i go about doing that?

david_ross 08-21-2004 12:03 PM

chmod 755 /home/server
chmod 644 /home/server/index.html
chown -R apache /home/server

Boffy 08-21-2004 12:05 PM

no luck, any other ideas?

david_ross 08-21-2004 12:13 PM

Try adding a directory section below the DocumentRoot to your configuration:

DocumentRoot /home/server
<Directory "/home/server">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

Then restart apache. If that doesn't work then check in your error_log file to see if there is more information there.

Boffy 08-21-2004 12:25 PM

Its alivveeee. I don't know what that did but it worked. Thanks a bunch. :-)

david_ross 08-21-2004 12:36 PM

The default order rule needed to be set to allow.

All times are GMT -5. The time now is 01:35 AM.