E
E
Eugene Khablak2018-06-22 15:16:14
Apache HTTP Server
Eugene Khablak, 2018-06-22 15:16:14

How to access files via symlink?

Below is an example folder structure

/uploads
         /siteId
                 symlink_to_template -> ../../templates/1
/templates
         /1
         /2
         /3

The question is that I want to access files in another folder by url to symlink
Is it possible to access files in the templates/1 folder by request to symlink_to_template
Below is the request itself
http://uploads-local.com/%siteId% /%symlink_to_temp...
with such a request, a 403 error
Forbidden
You don't have permission to access
occurs in the Apache logs, the following error is
Symbolic link not allowed or link target not accessible

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-06-22
@Tabletko

What is not clear from the log? Probably the web server does not have access rights to the file referenced by the symlink.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question