View Single Post
  #2   (View Single Post)  
Old 23rd June 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,120
Default

I will guess you are running nginx chrooted, because that is the default configuration, and is likely why you are unable to reach the file. The default will not permit nginx to reach any file outside of the /var/www directory structure.

See the '-u' option in the nginx(8) man page to disable this security feature and permit nginx to access all filesystems.

---

Edited to add: if instead you operate nginx chrooted with all files inside /var/www, you will prevent a compromised webserver from reaching the rest of your data.

Last edited by jggimi; 23rd June 2016 at 12:26 AM. Reason: chroot is recommended
Reply With Quote