🔥 Edit: Ignore this post, and see my next post. 🔥
jsonger I'm not sure you will read this late reply, but will post anyway.
I was looking into this, as it would seem better to keep the public symlink url instead of using PHP proxy. However, the reason PHP proxy is used in the first place, is because the symlink target file is not within the Apache $_SERVER['DOCUMENT_ROOT']
, and if you try to serve a file in browser by symlink that is not within document root, you will get 403 - Forbidden
response (regardless of file permissions).
When using PHP proxy on the other hand, it works fine, as long as the symlink target has read permissions for the PHP user. PHP is not under the same limitations as Apache, which is not allowed to access files outside of DOCUMENT_ROOT
, without help from PHP.
Therefore, it seems like a bad idea to try to load symlink paths directly in browser, unless we know for sure they point to files that are within DOCUMENT_ROOT
. In your case, they are not, because Files Gallery will only proxy by PHP in the first place, if the file is outside DOCUMENT_ROOT
. You can try yourself.