Answer the question
In order to leave comments, you need to log in
How to configure nginx to ignore html files?
current config,
server {
listen 80;
index index.html index.htm index.php;
server_name site.local www.site.loc;
root /var/www/site.loc/public_html;
error_log /var/www/site.loc/logs/error.log;
access_log /var/www/site.loc/logs/access.log main;
location ~* \.(css|js|png|ico|jpe?g|gif|woff|eot|svg|ttf|txt)$ {
expires 30d;
}
location / {
rewrite ^(.*)$ /index.php;
include /usr/local/etc/nginx/conf.d/php-fpm;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question