无法从外部访问网站?
问题描述:
所以我不能从外面访问我的网站出于某种原因。我已经尝试了命令“平xxx”从CMD,但我得到一个超时。但我可以从外面访问数据库。我有端口转发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>
的我怎么能解决这个问题的任何想法?
答
尝试用Apache 2.4语法替换此Apache 2.2语法。
从
Order allow,deny
Allow from all
Deny from none
要
Require all granted