location / { fastcgi_pass 127.0.0.1:1026; fastcgi_index index.php; include fastcgi.conf; index index.php; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 last; break; } } location ~ "\.(js|ico|gif|jpg|png|css)$" { expires 1w; } |
location / { fastcgi_pass 127.0.0.1:1026; fastcgi_index index.php; include fastcgi.conf; index index.php; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 last; break; } } location ~ "\.(js|ico|gif|jpg|png|css)$" { expires 1w; } |
学习到了 多谢分享