| 
					这是什么意思。
 前台访问 No input file specified. 后台访问 {未找到} 法海不懂爱~页面不出来! 求助 | |
| 沙发#发布于:2019-01-02 20:31 
					伪静态规则问题,up_rewrite.conf里加入网站nginx伪静态规则,规则index.php后面加?号				 | |
| 板凳#发布于:2019-01-02 21:56 | |
| 地板#发布于:2019-01-03 15:06 
					我也遇到类似问题了,域名和解析的IP地址都需要换,用之前的域名可以正常访问登录页面,更改域名以后就出现法海不懂爱了。。之前的up_rewrite.conf 都用#注释的,感觉不牵扯这个文件设置。。请哪位大大指点一下哈。。多谢				 | |
| 4楼#发布于:2019-01-03 17:06 | |
| 5楼#发布于:2019-01-11 04:35 
					ThinkPHP 的伪静态 if (!-e $request_filename) { rewrite ^/(.*)$ /index.php$1 last; break; } 这样了还是不好使啊,救命啊 | |
| 6楼#发布于:2019-01-11 04:46 | |
| 7楼#发布于: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} 搞定 | |
| 8楼#发布于:2019-01-11 07:09 
					if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } 主要是这句伪静态规则,注意index.php?s=/$1 命令版的nginx集成包把这个规则加到网站根目录up_rewrite.conf里,然后重启nginx服务就可以了。 | |
 
							
 
				
 
				






