centOS 下安装Nginx,访问/data/www目录时出现file not found
2017-05-22 15:37
881 查看
1、首先确认有没有此文件
2、看看能不能访问.html如果能访问.html却不能访问.php,多半是没有配置Nginx如何解析php代码。去配置文件server块中把
location ~ \.php$前面的#去掉,如何重启Nginx即可。
重启Nginx sbin/nginx -s reload
还有其他问题:http://blog.csdn.net/buptwds/article/details/51647393
重启Nginx :http://www.cnblogs.com/derekchen/archive/2011/02/17/1957209.html
2、看看能不能访问.html如果能访问.html却不能访问.php,多半是没有配置Nginx如何解析php代码。去配置文件server块中把
location ~ \.php$前面的#去掉,如何重启Nginx即可。
重启Nginx sbin/nginx -s reload
还有其他问题:http://blog.csdn.net/buptwds/article/details/51647393
重启Nginx :http://www.cnblogs.com/derekchen/archive/2011/02/17/1957209.html
相关文章推荐
- centos下安装nginx访问html目录下的文件时出现403或者file not found
- centos7 安装nginx和php5.6.25遇到 无法访问php页面 报错file not found 问题解决
- Xcode在项目更名之后,把项目转移到其他机器出现ld: file not found: /Users/macmini/Library/Developer/Xcode/DerivedData/t的问题
- Android访问服务器出现W/System.err(9302): java.io.FileNotFoundException:怎么办
- VMware 12安装CentOS 6.9时出现:The centos disc was not found in any of your drives.Please insert the centos disc and press OK to retry
- linux ubuntu关于U盘的安装 开机启动u盘的时候出现/casper/vmlinuz.efi: file not found
- Nginx访问PHP文件的File not found错误处理,两种情况
- Nginx访问PHP文件的File not found错误处理,两种情况
- Windows7安装nginx后,'nginx -t -c nginx.conf' 命令出现 “could not open error log file: CreateFile() "logs/error.log" failed” 错误的原因
- nginx 部署php项目,访问域名提示File not found
- CentOS 6.2 二进制安装apache2.4.3出现configure: error: APR-util not found. Please read the documentation的解决方
- CentOS 6.2 二进制安装apache2.4.3出现configure: error: APR-util not found. Please read the documentation的解决方
- CentOS 7 + Nginx 1.6.2 + PHP 5.4.45 FastCGI错误Primary script unknown网页显示File not found的解决办法
- Nginx访问PHP文件的File not found错误处理,两种情况
- Nginx 更改网站根目录教程 - 顺便解决403 Forbidden | File not found
- nginx/1.4.6 配置的虚拟主机访问提示“File not found”
- Web 开发中 文件上传 是出现的:java.io.FileNotFoundException: (文件名、目录名或卷标语法不正确。)
- 【Android SDK安装】UpdateManager更新失败,File not found: xxx/temp/android-3.0_r01-linux.zip (拒绝访问。)
- 关于IO流在复制文件时出现java.io.FileNotFoundException: D:\xxx (拒绝访问。) 拒绝访问的问题