server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/laravel/public;
index index.php index.html index.htm;
server_name server_domain_or_IP;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
laravel重写规则
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- server {listen 80;server_name 你的域名;root 网站的根目录;index ...
- 今天开发登陆注册这块的业务。遇到一个问题就是怎么让用户填写不表单在错误的时候返回页面也吧内容带进去。 那我们来试试...
- 命令printenv 显示rancher会默认设置redis环境变量到容器中。而laravel/lumen 安装的...
- [I:复述原文] 有时候会觉得付出的没有回报?所以就会情绪特别不好? 很多人认为自己付出了就应该有回报。比如:“我...