Solved

Apache directory

Posted on 2013-10-25
2
210 Views
Last Modified: 2013-10-26
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,
0
Comment
Question by:alcani
2 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39602130
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.
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39602718
You can add a symbolic link to the folder from the site root folders but as Dave has said it needs the proper permissions.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now