?
Solved

Apache2 directory symlinks

Posted on 2006-11-13
3
Medium Priority
?
1,030 Views
Last Modified: 2007-12-19
Is there any way to create the above such that they can refer to directories normally outside my webroot without having to set up access per directory? Something like AllowSymlinks or some such ..?
0
Comment
Question by:CEHJ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 800 total points
ID: 17930717
Do You look for http://httpd.apache.org/docs/2.0/mod/core.html#options directive FollowSymLinks
edit Your httpd.conf and just allow it.
0
 
LVL 14

Expert Comment

by:ygoutham
ID: 17936557
you can always include a separate conf file for that alias and create a forward.  something simple would be a /webmail which forwards to /usr/share/squirrelmail.

create a file called mydir.conf in /etc/httpd/conf.d/

********
#forward or a symbolic path in document root

Alias /mydir     /path/to/mydir

***************

now your http://localhost/mydir would automatically go to that dir. provided the permissions are 755 (or apache / whichever user your apache runs under, should have read rights into the directory)
0
 
LVL 14

Expert Comment

by:ygoutham
ID: 17936577
restart httpd for the config to take effect
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.:
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.
Suggested Courses
Course of the Month11 days, 15 hours left to enroll

752 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