Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Apache2 directory symlinks

Posted on 2006-11-13
3
Medium Priority
?
1,032 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 your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

610 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