사이트 운영 및 유지 보수 : 아파치의 XAMPP 웹 디렉토리에 대한 액세스를 차단 초기 설정

1, 아파치 설정 파일 httpd.conf를 찾기로 :

<Directory "C:/xampp/htdocs">
    #
    # 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 Includes ExecCGI

    #
    # 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.
    #
    Require all granted
</Directory>

2, 수정

옵션 색인 FollowSymLinks를이 ExecCGI를 그 라인 변경을 포함

#Options Indexes FollowSymLinks Includes ExecCGI
Options FollowSymLinks Includes ExecCGI

인덱스를 제거하는 것입니다, 인덱스는 말했다 현재 디렉토리의 디렉토리 구조를 표시합니다 index.html을하지 않은 경우.

다시 시작 아파치 서버

3, 개정 전

여기에 그림 삽입 설명

4, 개정

여기에 그림 삽입 설명

추천

출처blog.csdn.net/weixin_43731793/article/details/93857682