Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # PHP proxy
- location ~* .php$ {
- expires -1;
- try_files $uri =404;
- fastcgi_index index.php;
- fastcgi_pass unix:/var/run/php-fpm/www.sock;
- include /etc/nginx/fastcgi_params;
- include /etc/nginx/fastcgi_params_env;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param SCRIPT_NAME $fastcgi_script_name;
- }
- map $sent_http_content_type $expires {
- default -1;
- application/rss+xml off;
- application/pdf max;
- ~image/ 365d;
- }
- expires $expires;
Add Comment
Please, Sign In to add comment