VPS侦探论坛

 找回密码
 注册
查看: 3971|回复: 3

nginx配置问题

[复制链接]
发表于 2015-8-2 02:23:21 | 显示全部楼层 |阅读模式

通过lnmp vhost add发布了网站,nginx配置文件中改端口为8082,之后html文件可以正常访问,php文件无法正常访问
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-8-2 02:29:19 | 显示全部楼层

贴下日志



123.114.49.10 - - [02/Aug/2015:02:28:01 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:29 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:31 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:31 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:31 +0800] "GET /info.php HTTP/1.0" 404 269
[Sun Aug 02 02:28:01 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:29 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:31 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:31 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:31 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat


我的目录是/home/www/code/html下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-8-2 02:34:13 | 显示全部楼层

加目录来一个


[root@localhost wwwlogs]# tail -f IP-access_log
123.114.49.10 - - [02/Aug/2015:02:28:29 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:30 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:31 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:31 +0800] "GET /info.php HTTP/1.0" 404 269
123.114.49.10 - - [02/Aug/2015:02:28:31 +0800] "GET /info.php HTTP/1.0" 404 269
^C
[root@localhost wwwlogs]# tail -f IP-error_log
[Sun Aug 02 02:28:29 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:30 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:31 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:31 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
[Sun Aug 02 02:28:31 2015] [error] [client 123.114.49.10] script '/home/www/info.php' not found or unable to stat
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-8-2 18:49:07 | 显示全部楼层



发你对应虚拟主机的配置文件看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 02:53 , Processed in 0.026222 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表