> 백엔드 개발 > PHP 튜토리얼 > Mac 시스템의 PHP 프로젝트는 홈 페이지 외에는 접근할 수 없습니다.

Mac 시스템의 PHP 프로젝트는 홈 페이지 외에는 접근할 수 없습니다.

little bottle
풀어 주다: 2023-04-05 21:58:01
앞으로
2267명이 탐색했습니다.

일부 네티즌들은 Mac에서 Apache를 구성하는 데 문제가 있다고 보고했습니다. 편집자가 관련 해결 방법을 찾았습니다.

  1. mod_rewrite.so 모듈은 httpd.conf 구성 파일에 로드됩니다.

  2. AllowOverride 없음 변경 없음 to All


1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

DocumentRoot "/Library/WebServer/Documents"

<Directory "/Library/WebServer/Documents">

    #

    # 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&#39;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 FollowSymLinks Multiviews

    MultiviewsMatch Any

  #

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

     AllowOverride All         #这里这里!!!

     Order deny,allow

     Allow from all

    #

    # Controls who can get stuff from this server.

    #

    Require all granted

</Directory>

로그인 후 복사

[추천 튜토리얼: php 프로그래밍 입문부터 마스터까지 전체 비디오 튜토리얼 세트 #🎜🎜 #】

위 내용은 Mac 시스템의 PHP 프로젝트는 홈 페이지 외에는 접근할 수 없습니다.의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

관련 라벨:
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿