Access Denied Errors


"Forbidden/You don't have permission to access /xxx on this server"


If your web browser returns 403 Forbidden/Access Denied when you attempt to load a web page through your Apache server, it means that the requested URL is subject to access restrictions that were not met by your request. To solve this problem, change the permissions of the web content or files that you have requested, and ensure that all directories leading to the document in question are both read- and execute-accessible to the owner of the Apache process. In Unix systems, you can use the chmod utility to set those permissions.

A "Client denied by server configuration" statement in the error log indicates that the denial results from access control directives (such as Allow and Deny) in the <Directory> or <Location> sections for that URL in your Apache configuration files.

A "Directory index forbidden by rule" statement in the error log indicates that you have attempted to view a directory in which no index file can be found. For details on directory indexing and index files, read about the Indexes option of the Options directive, covered in Chapter 6.

Options ExecCGI is off in this directory


If when attempting to execute a CGI-script you see "Options ExecCGI is off in this directory," it means that you have not marked the CGI as executable in the Apache configuration file or that CGI scripts cannot be run from the directory in question. Read about the ScriptAlias or Options directive for more information.




Apache(c) Phrase Book(c) Essential Code and Commands
Apache Phrasebook
ISBN: 0672328364
EAN: 2147483647
Year: 2006
Pages: 254

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net