Solved

Apache2 directory symlinks

Posted on 2006-11-13
3
1,015 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
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 200 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

708 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

18 Experts available now in Live!

Get 1:1 Help Now