Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Apache 2, Fedora Core, symbolink links and 403 Forbidden

neutrino38 (1037806) writes | more than 6 years ago

Software 0

While setup a web access to a directory outside the document root, I encountered a 403 Forbidden error. In error_log, this gives

Symbolic link not allowed or link target not accessible:

This error message occurs in several situation. There are no tool to troubleshoot them apart manual inspection.

1. If you are running SElinux, make sure that SElinux configuration allows httpd to access the targetted directory.

While setup a web access to a directory outside the document root, I encountered a 403 Forbidden error. In error_log, this gives

  Symbolic link not allowed or link target not accessible:

This error message occurs in several situation. There are no tool to troubleshoot them apart manual inspection.

1. If you are running SElinux, make sure that SElinux configuration allows httpd to access the targetted directory.

You can check /var/log/messages about SElinux access violations and or temporary disable SElinux using /usr/sbin/setenforce 0 to discriminate the case.

2. Check that the sym link is sitting in a directory or a subdirectory that has FollowSymlinks option enabled in httpd.conf

3. Check whether any directory directive would restrict this option using -FollowSymLink. Check this in httpd.conf and all included files.

4. Last but not least, check that your targed directory and files is accessible to user apache. THIS MEANS THAT any parent directory of the target should have the proper permissions. Most probably, read and execute for the whole world.

cancel ×

0 comments

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...