Link to home
Start Free TrialLog in
Avatar of alcani
alcani

asked on

Apache directory

Hi experts,

I would like to know if is possible to access a directory thru the browser that is not under the site root.

Eg.
In httpd.conf
¿      DocumentRoot "/usr/local/alcani"

And I would like to view thru the browser files under /u/TXT/

Thank you for your answer,

Regards,
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Under a plain Apache install, the answer is no.  If the directory is in an 'alias' and the Apache user has permissions to access that directory, then yes.  Also, if Apache is running 'suexec' and that directory belongs to the user the site belongs so that they have permissions to access, then yes also.  That is common under 'per user' sites where each user has a web site in their own user space.
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial