Tag Archives: nginx

Nginx userdir with php

implement userdir with php in nginx Continue reading

Posted in Web | Tagged , , | Leave a comment

nginx – try files on multiple named location or server

Let’s start from the simplest case: How to serve files locally first, and proxy the request to other backend/internal server if not found? listen 192.168.1.10:80; … location /static/ { try_files $uri @static_svr1; } location @static_svr1{ proxy_pass http://192.168.1.11$uri; } That’s simple! … Continue reading

Posted in System Administration, Web | Tagged , , , , | 2 Comments

peek the source – Another troubleshooting method for open source software

Today I read a security article on the nginx fastcgi PATH_INFO (Chinese version on 80sec). I currently maintain several sites with nginx+php-fpm, so I decide to do some test and see if my configuration is in danger. However, when I … Continue reading

Posted in Security, Web | Tagged , , , , | Leave a comment