구성 당신은 권한이 없습니다 금지 된이 서버에 / 액세스 시간을 apache2.4 나타납니다. 문제 해결

면책 조항 :이 문서는 블로거 원본입니다, 추적 에 의해-SA의 CC 4.0 저작권 계약, 복제, 원본 소스 링크이 문을 첨부 해주세요.
이 링크 : https://blog.csdn.net/A1344714150/article/details/95341261

wampserver를 설치 한 후에는 로컬 호스트 또는 127.0.0.1에 액세스하여 웹 페이지에 액세스 할 수 있습니다;

그러나 다른 컴퓨터를 통해 서버의 공용 네트워크 IP 주소에 대한 액세스, 화면에 표시되어 금지 .... :

기존의 솔루션을 httpd.conf에서이 개 구성을 수정하는 것입니다와 나는 문제를 발견, 블로그 게시물을 확인하십시오.

내 용액 공정

처음

<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>

이 두 가지 구성 변경이 완료되면 저장하고 서비스를 다시 시작합니다. .

그것은 그 공용 네트워크를 통해 서버 또는 IP 접근 할 수없는 페이지를 발견했다.

마지막으로, 해당 게시물의 큰 형님은 또한 아파치 - vhost.conf 구성을 수정해야합니다.

원래 포스트 링크 : https://bbs.csdn.net/topics/390904273?list=23494857

마지막으로, 갱스터 솔루션으로 아파치 - vhost.conf 구성, 수정, 저장하고 서비스하는 웹 페이지를 통해 공용 네트워크 IP 액세스 서버의 성공을 다시 시작합니다.

추천

출처blog.csdn.net/A1344714150/article/details/95341261