You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by chipmonkeys <ch...@alltel.net> on 2006/09/10 00:16:27 UTC

[users@httpd] alias directive

Hello,

I've downloaded and installed the latest version of Apache on my PC, so I 
can learn to use PHP and MySQL.

I've entered http://localhost/  in my browser and get the "It works".

In testing the alias directive I've included in the config file, the browser 
opens a page with "You are not authorized to view this page. You might not 
have permission to view this directory or page using the credentials you 
supplied....HTTP Error 403 - Forbidden".

An error log advises "client denied by server configuration".

I've read the FAQ section but have no idea what the following means.

"A Permission denied error in the error_log, accompanied by a Forbidden 
message to the client usually indicates a problem with your filesystem 
permissions, rather than a problem in the Apache HTTP Server configuration 
files. Check to make sure that the User and Group running the child 
processes has adequate permission to access the files in question. Also 
check that the directory and all parent directories are at least searchable 
for that user and group (i.e., chmod +x)."

The first sentence in this FAQ statement seems to conflict with the error 
log statement. I'm also do not know anything about filesystem permissions 
and how to rectify that.

Any step by step help is appreciated.

Kerry 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] alias directive

Posted by Joshua Slive <jo...@slive.ca>.
On 9/9/06, chipmonkeys <ch...@alltel.net> wrote:
> Hello,
>
> I've downloaded and installed the latest version of Apache on my PC, so I
> can learn to use PHP and MySQL.
>
> I've entered http://localhost/  in my browser and get the "It works".
>
> In testing the alias directive I've included in the config file, the browser
> opens a page with "You are not authorized to view this page. You might not
> have permission to view this directory or page using the credentials you
> supplied....HTTP Error 403 - Forbidden".
>
> An error log advises "client denied by server configuration".
>
> I've read the FAQ section but have no idea what the following means.
>
> "A Permission denied error in the error_log, accompanied by a Forbidden
> message to the client usually indicates a problem with your filesystem
> permissions, rather than a problem in the Apache HTTP Server configuration
> files. Check to make sure that the User and Group running the child
> processes has adequate permission to access the files in question. Also
> check that the directory and all parent directories are at least searchable
> for that user and group (i.e., chmod +x)."
>
> The first sentence in this FAQ statement seems to conflict with the error
> log statement.

Exactly.  So this isn't a filesystems permissions problem.  It is a
problem with your apache config.  You probably need something like

<Directory /full/path/to/target/of/alias/>
Order allow,deny
Allow from all
</Directory>

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org