Hi, I want to serve some static files uploaded by an auxiliary login that only has SFTP access. Let's say my main user is called UA, the secondary sftp-only UB, and they both belong to a group GX In my /home/UA/webapps/static, I've symlinked a folder /home/UB/myfolder. The folder and the symlink belong to GX. When the user uploads files to my folder, they appear correctly under UA/webapps/static/myfolder, but when I try to see them as http://static.mydomain.com/myfolder , I get a 403. Where am I going wrong ? asked 10 Jan '14, 02:15 toyg |
Our Nginx server is configured to serve a 403 for any symlinks that point to a location outside of your main account home directory. The workaround is to go the other direction with your symlink, eg:
Hope that helps! answered 10 Jan '14, 19:31 seanf |