nginx对PHP文件报File not found.错
来源:互联网 发布:mac 兼容ie的浏览器 编辑:程序博客网 时间:2024/06/06 09:09
今天在配置nginx+php5.4的时候,配置完成后,浏览器打开php文件就提示File not found.错误。
纠结半天,终于发现错误的地方了:
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
改成如下这句,即可
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
server {
listen 80;
server_name *.example.com;
root /home/nginx/vhosts/example.com/web;
location / {
index index.php;
}
location ~ \.php$ {
root /home/nginx/vhosts/example.com/web;
fastcgi_pass 127.0.0.1:9001; fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
} 0 0
- nginx对PHP文件报File not found.错
- nginx php file not found
- nginx报 File not found 错误
- nginx报 File not found 错误
- nginx php file not found 错误
- nginx php-fpm file not found错误
- nginx php-fpm file not found错误
- nginx File not found.
- nginx File not found!
- nginx File not found
- Nginx访问PHP文件的File not found错误处理,两种情况
- Nginx访问PHP文件的File not found错误处理,两种情况
- nginx+php-fpm出现file not found错误
- nginx解析php时报”File not found“问题解决
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- 内联函数和宏的差别是什么?
- android的项目配置说明
- tomcat URL简写案例:模拟网站www.baidu.com的访问
- SQL1762N 不能与数据库相连,因为没有足够的空间用来分配活动的日志文件。SQLSTATE=08004
- 唠叨句,话说社会进步之尊重
- nginx对PHP文件报File not found.错
- jdk1.4 1.5(5.0) 1.6(6.0) 7.0 8.0的新特性
- android开发工具的选型
- POJ3067:Japan(线段树)
- java.lang.ref 类 Reference<T>
- java.lang.ref 类 SoftReference<T>
- centOs6环境nginx+php环境出现“Access denied”问题处理
- iOS创建excel
- 十道海量数据处理面试题与十个方法大总结