laravel如何设置nginx伪静态?
按照官网设置的直接不解析网页变成下载了,试了网上的很多版本也没用。
用的是LNMP一键安装环境。
我的vhost配置信息:
server
{
listen 80;
#listen [::]:80;
server_name domain.com;
index index.html index.htm index.php default.html default.htm default.php server.php;
root /home/wwwroot/domain.com/public;
#error_page 404 /404.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ [^/]\.php(/|$)
{
# comment try_files $uri =404; to enable pathinfo
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
#include pathinfo.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log /home/wwwlogs/domain.log access;
}
相关阅读:
android 上传文件报错
JS定时器的一个问题
Flask如何配置图片
如何使用python运行一个webkit核心加载某个页面,从而监控到页面的所有HTTP请求
现在开发iphone是否要支持ios4.3?
问个小白的问题
从a-f六个字符中取出3-4个字符进行组合该怎么做?
IDEA 下实现maven 工程的热部署?
Xcode编译报错Command /bin/sh failed with exit code 72
easyUI validType 两个以上的验证不起作用
用什么方法或者插件可以监听到DIV出现在浏览器窗口内?
JS计时器的问题
Android的WebView无法显示网页中的gif图片
公网访问不了,server本地wget http://127.0.0.1,能成功下载index.html,怎么破?
javascript设计思想
生产环境,如何实施android自动化测试?
Collection点击cell后,于awakeFromNib崩溃
api23下报错“Call requires permission which may be rejected by user”
奇怪的连接问题
js的异步编程和回调函数之间的关系?