0
$ ls -l .htaccess
lrwxrwxrwx 1 suseika suseika 74 Oct  1 03:35 .htaccess -> /home/suseika/some/path/to/the/actual/.htaccess

Apache just ignores such .htaccess. If I create a file instead of a symbolic link, it works properly. Can I configure Apache 2.4 to use that symlinked .htaccess?

jojman
  • 125
  • 1
  • 8
  • Does the user that apache is running as have access to that file, including the ability to traverse that path? – 84104 Sep 30 '16 at 23:42

2 Answers2

0

You need to enable the following of symlinks with the Options directive

Mark Wagner
  • 18,019
  • 2
  • 32
  • 47
0

The problem I had doesn't have anything to do with apache config. I run apache in a Docker container, and the symbolic link pointed to a file that is not available in that container.

jojman
  • 125
  • 1
  • 8