Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache "Forbidden You Don't have permission problem"

Status
Not open for further replies.

Hawki

Programmer
Oct 16, 1999
63
US
Help

I'm having problems when I type to access the Web page I get this error "Forbidden You Don't have permission to access / on this server". Also, here is what I have done:

1. Modified the Hosts file:

192.168.1.200 vhost1.mydomain.com


2.httpd.conf VirtualHost Section

<VirtualHost 192.168.1.200>
UserCanonicalname off
ServerName vhost1.mydomain.com
DocumentRoot /home/hawkins
</VirtualHost>

 
Hi,

On Redhat, the main server starts as root to bind to port 80 but then spawns listener tasks running under the user 'apache' (& group 'apache'). The default location for content is under /var/ so if you use another location you would need to ensure that the 'apache' user (or group) at least has read access. This would not be the case by default in your home directory.

Once that problem is solved its a matter of security permissions. Make sure you have something like this in httpd.conf :

order allow,deny
allow from all

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top