server {
listen 80 default;
server_name localhost;
root /var/www/html/roboot/public/;
index index.html index.php index.htm;
access_log /var/log/nginx/ac_bot.log;
error_log /var/log/nginx/err_bot.log;
# set expiration of assets to MAX for caching
location ~* \.(ico|css|js|gif|jpe?g|png|ogg|ogv|svg|svgz|eot|otf|woff)(\?.+)?$ {
expires max;
log_not_found off;
}
server_tokens off;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
index index.php index.html;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php last;
}
}
}