Solved

Apache2 directory symlinks

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HOw To Install Docker on VMware Workstation 19 619
Internal CA server 6 134
Zimbra and Renewing SSL Certficate 9 58
linux convert text file to PDF 7 69
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…
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…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 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