|
Bugzilla – Full Text Bug Listing |
| Summary: | Symbolic link not allowed or link target not accessible | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Distribution | Reporter: | John Goutbeck <john.goutbeck> |
| Component: | Apache | Assignee: | E-mail List <apache-bugs> |
| Status: | RESOLVED INVALID | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | david.anes |
| Version: | Leap 15.4 | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | openSUSE Leap 15.4 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
John Goutbeck
2023-06-14 14:34:15 UTC
With my test sym link directory htd, added this to the default-server.conf --- # Make sure that symlink /srv/www does not make problems <Directory /srv/www> Options +FollowSymlinks </Directory> --- and now the browser displays ‘It Works!’ So why does the directory of one above need to be in the conf? (In reply to John Goutbeck from comment #1) > With my test sym link directory htd, added this to the default-server.conf > --- > # Make sure that symlink /srv/www does not make problems > <Directory /srv/www> > Options +FollowSymlinks > </Directory> > --- > and now the browser displays ‘It Works!’ > > So why does the directory of one above need to be in the conf? Because 'htd' is within '/srv/www' and because default configuration is NOT to follow symlinks, then 'htd' is not accessible. By setting the parent path '/srv/www' with FollowSymlinks, then 'htd' is reachable. This is clearly stated in the documentation: https://httpd.apache.org/docs/2.4/mod/core.html#directory > Enclose a group of directives that apply only > to the named file-system directory, sub-directories, and their contents. I'm closing this one as invalid, but feel free to reopen if you find any other issue. |