April 23, 2020
Estimated Post Reading Time ~

Disable Apache’s following of Symbolic Links

Environment: Apache webserver
- By default Apache webserver follows symlinks,
- We can turn off this feature with FollowSymLinks with Options directive.
- Open the HTTD.conf file and add the below line.
# Options -FollowSymLinks

- If there is a need for FollowSymLinks feature, can be enabled by writing in the rule in the “.htaccess” file from that website.
# Enable symbolic links
# Options +FollowSymLinks
Note: To enable rewrite rules inside the “.htaccess” file “AllowOverride All” should be present in the main configuration globally.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.