所以我出于某种原因无法从外部访问我的网站。我从cmd尝试过命令“ping xxx”,但是我得到了超时。我可以从外面访问数据库。我有端口转发80,并尝试关闭我的防火墙和放大器允许端口80 TCP / UDP进出。
我可以在本地(从我的电脑和同一网络)访问它
我的httpd.conf看起来像这样:
<Directory "D:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order allow,deny
Allow from all
Deny from none
</Directory>
关于如何解决这个问题的任何想法?
答案 0 :(得分:0)
尝试使用Apache 2.4语法替换此Apache 2.2语法。
这
Order allow,deny
Allow from all
Deny from none
到
Require all granted