카테고리 없음

[아파치] mod_rewrite가 작동하지 않아 수정하는 동안 403 금지됨

행복을전해요 2021. 2. 21. 14:33

간단히 제거했습니다.

DocumentRoot /var/www
   <Directory />
    Options FollowSymLinks
      AllowOverride All
       </Directory>
        <Directory /var/www/>
         Options Indexes FollowSymLinks MultiViews
          AllowOverride All
           Order allow,deny
           allow from all
            </Directory>
            

대신 이것을 넣으십시오.

DocumentRoot /var/www
<Directory /var/www>
 AllowOverride All
 </Directory>
 

이제 권한 오류가 사라지고 mod_rewrite가 예상대로 작동합니다.

-------------------

이것을 추가 <Directory /var/www/html>

Options +SymLinksIfOwnerMatch

나를 도와 주었다.



출처
https://stackoverflow.com/questions/22079973