这是什么意思。
前台访问 No input file specified. 后台访问 {未找到} 法海不懂爱~页面不出来! 求助 |
|
沙发#
发布于:2019-01-02 21:56
|
|
板凳#
发布于:2019-01-11 04:35
ThinkPHP 的伪静态 if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php$1 last; break; } 这样了还是不好使啊,救命啊 |
|
地板#
发布于:2019-01-11 04:46
|
|
4楼#
发布于:2019-01-11 05:06
哦,我搞定了,如果有遇到相同问题的朋友可以参考我这样
vhosts.conf 文件打开(千万不能用笔记本打开 不能用笔记本打开 不能用笔记本打开) 复制如下 server { listen 80; server_name 127.0.0.1 alias localhost; location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } root C:/UPUPW_NP7.0/htdocs; index index.html index.htm default.html default.htm index.php default.php app.php u.php; include C:/UPUPW_NP7.0/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 C:/UPUPW_NP7.0/htdocs; 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} 搞定 |
|