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
Solved

Apache2 directory symlinks

Posted on 2006-11-13
3
1,024 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Penetration Testing home based work 3 91
ignore other .htaccess 2 58
AWS EC2 HTTP & HTTPS 2 44
Linux MD5 Hash 7 39
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
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.

861 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