我遇到的,多数是虚拟主机的域名错误引起的
今天遇到一特例,
直接访问www.example.com
报403 Forbidden
但www.example.com/index.php是正常的
是因为server_name www.example.com后少了个分号
正确的应该是
server_name www.example.com ;
奇怪nginx -t并不报错
每日存档 十二月 27th, 2009
Nginx的403 Forbidden
Nginx的No input file specified错误
访问www.example.com/install.php
提示“No input file specified”
网上找到很多原因
但我遇到的不是那样
是因为include/hosts/vhost.conf行少了一个分号
正确的应该是
include/hosts/vhost.conf;