Solved

Apache directory

Posted on 2013-10-25
2
214 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 83

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

730 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