Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache Can';你不能从外部访问网站吗?_Apache_Wamp_Wampserver - Fatal编程技术网

Apache Can';你不能从外部访问网站吗?

Apache Can';你不能从外部访问网站吗?,apache,wamp,wampserver,Apache,Wamp,Wampserver,因此,由于某些原因,我无法从外部访问我的网站。我尝试了cmd中的命令“ping xxx”,但是我得到了一个超时。不过我可以从外部访问数据库。我已将端口转发到80,并尝试关闭防火墙&允许端口80 TCP/UDP进出 我可以在本地访问它(从我的计算机和同一网络上) 我的httpd.conf如下所示: <Directory "D:/wamp/www/"> # # Possible values for the Options directive are "None", "All", # o

因此,由于某些原因,我无法从外部访问我的网站。我尝试了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>

#
#选项指令的可能值为“无”、“全部”,
#或以下任何组合:
#索引包括以下符号链接符号链接所有者匹配执行CGI多视图
#
#请注意,“多视图”必须显式命名为*--“所有选项”
#不给你。
#
#期权指令既复杂又重要。请看
# http://httpd.apache.org/docs/2.4/mod/core.html#options
#了解更多信息。
#
选项索引跟随符号链接
#
#AllowOverride控制可在.htaccess文件中放置的指令。
#它可以是“全部”、“无”或关键字的任意组合:
#AllowOverride文件信息AuthConfig限制
#
允许超越所有
#
#控制谁可以从此服务器获取内容。
#
#onlineoffline标记-不删除
命令允许,拒绝
通融
无可抵赖

有什么办法可以解决这个问题吗?

试着用Apache2.4语法替换Apache2.2语法

Order allow,deny
Allow from all
Deny from none
Require all granted