XAMPP 는 Access forbidden 의 상황 처 리 를 알려 줍 니 다.

Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
test.abc.netApache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3
현재 사이트 는 httpd - vhost. conf 에 정의 되 어 있 습 니 다.

    ServerAdmin [email protected]
    DocumentRoot "D:/Documents/abc/php/basic/web"
    ServerName youai1.cm
    ErrorLog "logs/abc.net-error.log"
    CustomLog "logs/dummy-abc.net-access.log" common
    
     RewriteEngine on
    #                 ,    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    #               ,      index.php
    RewriteRule . index.php
   

이 때 httpd. conf 에 이 코드 를 추가 해 야 합 니 다.

    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Require all granted

위 에 있 는 Virtual Host 에 이 부분 을 더 하면,
그리고 xampp 를 다시 시작 하여 문제 해결.

좋은 웹페이지 즐겨찾기