設定は、あなたがこのサーバー上の/アクセス許可apache2.4の時間を持っていない禁止されて表示されます。問題解決策

免責事項:この記事はブロガーオリジナル記事です、続くBY-SAのCC 4.0を著作権契約、複製、元のソースのリンクと、この文を添付してください。
このリンク: https://blog.csdn.net/A1344714150/article/details/95341261

wampserverをインストールした後は、localhostまたは127.0.0.1にアクセスすることにより、Webページにアクセスすることができます。

しかし、他のコンピュータを介してサーバーのパブリックネットワークのIPアドレスへのアクセスは、....禁止ディスプレイに表示されています。

従来の解決策は、httpd.confの2つの構成を変更することであると私は問題を発見し、ブログ記事をチェックしてください。

私の溶液プロセス

最初の

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

に改訂

<Directory />
    Options FollowSymLinks
    AllowOverride none
    Require all granted
</Directory>

それから

DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/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 +Multiviews

    #
    # 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
#    Require local
   AllowOverride All
    Order allow,deny
    Allow from all
    Require all granted
</Directory>

に改訂

DocumentRoot "C:/wamp/www"
<Directory "C:/wamp/www">
    Options Indexes FollowSymLinks
    AllowOverride all
    Require all granted
</Directory>

これらの2つの設定変更が完了したら、保存し、サービスを再起動します。

これは、公衆ネットワークを介してサーバやIPアクセスがページできないことが判明しました。

最後に、そのポストの兄は、またHTTPD-vhost.confの設定を変更する必要があります。

オリジナルのポストのリンク:https://bbs.csdn.net/topics/390904273?list=23494857

最後に、ギャング・ソリューションにより、HTTPD-vhost.confの構成は、変更保存してサービス、Webページを介して公衆ネットワークIPアクセスサーバーの成功を再起動します。

おすすめ

転載: blog.csdn.net/A1344714150/article/details/95341261