Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having a real problem getting Apache to allow a symlink on a particular folder. The symlink is at /var/www/html/images and it points to /home/foo/images.
Here is the relevant section to my httpd.conf
Quote:
<Directory />
Options +FollowSymLinks
AllowOverride None
</Directory>
<Directory "/home/foo/images">
# ALSO ATTEMPTED: <Directory "/var/www/html/images">
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
I am using Centos 5 with everything up to date (according to their repositories). I read a former article on this site about the possibility of SELinux interfering, and I'd like to say now that it's not the reason for my issues as it's turned off.
Visiting http://<ip>/images renders a 403 error. Here is what the error_log has to say about it:
Quote:
[Tue Jun 22 16:26:43 2010] [error] [client 192.168.0.94] Symbolic link not allowed or link target not accessible: /var/www/html/images
I'm sort of at my wit's end on this one. I even copied over an httpd.conf file from a server that does work and replaced the paths in httpd.conf but even this didn't work. Any help would be appreciated.
Just create the symlink as normal (i.e. as the same user as owns the site, or make the linked to directory and files readable by all), then access images as normal.
And I know that it's a recipe for disaster, but I'm doing so until I fix this one issue. As long as it's running as root I can be pretty sure that it's not a permissions issue. After it's working, i can change it back. It's not exactly a public server either so I should be fine for a while.
EDIT: Okay, I was wrong. It's in fact still running as 'apache' but the folder /home/foo/images remains, as all of its contents, chmod'd to 777.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.