biyexp 发表于 2012-11-17 00:45:53

lnmpa,域名可以访问网站,ip不可以

域名访问网站正常,但是用ip访问会提示:
Access forbidden!      You don't have permission to access the requested directory.    There is either no index document or the directory is read-protected.
If you think this is a server error, please contactthe webmaster.
Error 403125.32.113.157
    Sat Nov 17 00:34:47 2012
Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips PHP/5.2.17p1

请问军哥, 我如何让ip也可以直接访问网站。

licess 发表于 2012-11-17 09:18:11

可能安装lnmp时的域名与升级到lnmpa时的域名不一样

biyexp 发表于 2012-11-19 20:51:26

应该是填写的不一样, 因为不是一次性升级的。请问军哥我如何修改?

licess 发表于 2012-11-20 10:41:58

回复 3# 的帖子

/usr/local/nginx/conf/nginx.conf 里的域名与/usr/local/apache/conf/extra/httpd-vhosts.conf 里的一致才行
页: [1]
查看完整版本: lnmpa,域名可以访问网站,ip不可以