Webserver follow symlink?

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx, apache2 or another reverse proxy, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

Clean install of Pi-hole set to serve all files in root. Added symlink to folder in user directory and uploaded test file there. Index file in root directory with link to test file should follow its URL through symlink.

Actual Behaviour:

404 error from webserver

Debug Token:

Replace this text with the debug token provided from running pihole -d

pihole v6 webserver is not apache. it wont follow a symlink into someones home dir. 404 is the default, not a broken install.

either copy the files into the real webroot or run a normal nginx/caddy for that. chmod o+x on the home path still wont help if the process refuses the symlink.

drop a pihole -d token if you want people to confirm the webroot path. and fill that debug field next time.

Pihole runs CivetWeb which has a uri_rewrite_patterns parameter that would do what I want. How does one implement this?

You can keep the posts to one topic please. But to answer both this and the Feature Request:

Don't count on civetweb being around long. Very high chance that it is removed for the next major Pi-hole release.

You need to use another dedicated webserver for your use case.