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;
}
#error_page 404 /;
location ~ \.(css|js|jpeg|jpg|gif|png|ico) {
expires 30d;
}
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