server { listen 80; server_name localhost; access_log /var/www/lolhost/logs/access.log; error_log /var/www/lolhost/logs/error.log; index /index.php; if (!-e $request_filename) { rewrite ^.*$ /index.php last; } if (!-f $request_filename) { break; } location ~ \.(php|phtml)$ { fastcgi_pass 127.0.0.1:8888; fastcgi_index /index.php; fastcgi_param SCRIPT_FILENAME /var/www/lolhost/public_html$fastcgi_script_name; include /etc/nginx/fastcgi_params; } }
No comments:
Post a Comment