Loading... <pre style="white-space:normal;color:#464646;font-size:14px;background-color:#FFFFFF;"> <pre class="prettyprint lang-js linenums">location / { try_files $uri $uri/ /index.php?$query_string; } location /api { try_files $uri $uri/ /api.php?$query_string; } location /admin { try_files $uri $uri/ /admin.php?$query_string; } location /flarum { deny all; return 404; } location ~* \.php$ { fastcgi_split_path_info ^(.+.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_index index.php; } location ~* \.html$ { expires -1; } location ~* \.(css|js|gif|jpe?g|png)$ { expires 1M; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; }</pre> <br /> </pre> 最后修改:1970 年 01 月 01 日 © 允许规范转载 打赏 赞赏作者 赞 3 如果觉得我的文章对你有用,请随意赞赏
1 条评论
test