Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index index.php;
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location / {
- # This is cool because no php is touched for static content
- # try_files $uri $uri/ /index.php?q=$uri&$args;
- expires max;
- log_not_found off;
- }
- location ~ \.php$ {
- #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
- #DONT REFRESH MORE THAN 40 TIMES KIDS
- limit_req zone=pw burst=40 nodelay;
- include fastcgi_params;
- fastcgi_intercept_errors on;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- error_page 404 /404page.html;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- log_not_found off;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement