4
1
Please help me figure this out, I'm out of options what to even google. No idea why this apache configuration is not working as I expected.
<VirtualHost *:80>
DocumentRoot "/var/www/x/frontend/www"
ServerName test.dev
Alias /uploads "/var/www/x/common/uploads"
<Directory "/var/www/x/frontend/www">
AllowOverride All
</Directory>
<Directory "/var/www/x/common/uploads">
Options +FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Now, when accessing http://test.dev/uploads/something, I get 403 Forbidden. In apache error log:
"AH00037: Symbolic link not allowed or link target not accessible: /var/www/x/common/uploads/something"
/var/www/x/common/uploads/something
is a symbolic link to /home/myusername/something
, which is a remote folder mounted with sshfs.
/home/myusername/something
has 755 permissions and everything inside it has 777 permissions.
First find out, if it is link-related or permission-related: Use
Alias /uploads "/home/myusername/something"
with a fitting<Direcotry>
directive, retry and post results – Eugen Rieck – 2014-07-16T09:35:52.787