【问题标题】:Can't access website from outside?无法从外部访问网站?
【发布时间】:2015-02-23 19:46:50
【问题描述】:

因此,由于某种原因,我无法从外部访问我的网站。我已经从 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>

关于如何解决此问题的任何想法?

【问题讨论】:

    标签: apache wamp wampserver


    【解决方案1】:

    尝试用 Apache 2.4 语法替换这个 Apache 2.2 语法。

    来自

    Order allow,deny
    Allow from all
    Deny from none
    

    Require all granted
    

    【讨论】:

      猜你喜欢
      • 2019-01-21
      • 1970-01-01
      • 2019-02-25
      • 1970-01-01
      • 1970-01-01
      • 2021-10-14
      • 1970-01-01
      • 2012-02-20
      • 2020-05-16
      相关资源
      最近更新 更多