在Nginx上配置ThinkPHP项目~ 呢?
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励20(财富值+成长值)
1个回答
展开全部
server {
listen 80;
server_name wp.qianbudai.com alias qianbudai.com;
location / {
root D:/work/201711/phpfangzhan-wp;
index index.html index.htm default.html default.htm index.php default.php app.php u.php;
include D:/UPUPW_NP5.6/htdocs/up-*.conf;
}
autoindex off;
include advanced_settings.conf;
#include expires.conf;
location ~* ^.+.*\/(attachment|attachments|uploadfiles|avatar)\/.*\.(php|php5|phps|asp|aspx|jsp)$ {
deny all;
}
location ~ ^.+\.php {
root D:/work/201711/phpfangzhan-wp;
fastcgi_pass bakend;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi.conf;
}
}
#server 127.0.0.1 end}
追问
谢谢
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询