ubuntu 18.04 apache2, php7.2에서, AH01630 발생

증상: 사이트 접속하면 php 실행되지 않고, access denied 발생.

아파치 서버 에러 로그에 아래와 같이 AH01630 보임.

[Fri Nov 30 11:10:24.213924 2018] [authz_core:error] [pid 10214] [client 39.7.50.223:36708] AH01630: client denied by server configuration: /home/blog/public_html/php.php

https://stackoverflow.com/questions/18392741/apache2-ah01630-client-denied-by-server-configuration 를 참고해서 아파치2 버전을 확인해보니, apache2 2.4버전을 사용중이었고, virtualhost 는 아래와 같이 설정되어 있음.

        <Directory /home/blog/public_html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                #RedirectMatch ^/$ /apache2-default/
        </Directory>

이제, 위 문서에의해 Require all granted 를 추가해 주었다.

        <Directory /home/blog/public_html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                Order allow,deny
                allow from all
                Require all granted
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                #RedirectMatch ^/$ /apache2-default/
        </Directory>

이후 apache 재 실행하니 잘 된다!!

답글 남기기

Your email address will not be published.