메뉴 건너뛰기

infra

[apache] 기본 경로, 기본 설정

lispro062017.07.13 02:54조회 수 456댓글 0

    • 글자 크기

alias 로 /error, /icons, /cgi-bin 이 등록되어 있으며, html 파일들의 상위 경로이다.


따라서 authConfig 옵션을 documentroot 에 등록해 주는 것이 좋으며, 해당 디렉터리의 설정도 가이드대로 하는 게 맞다.


~/icons/ 디렉터리는 초기 설정이 디렉터리 인덱싱까지 되므로 확인할 필요가 있으며,

~/error/noindex.html 파일 등이 존재하는 지도 접근해 볼 필요가 있다.


<Directory />

    Options FollowSymLinks Includes

    AllowOverride AuthConfig

    AddType text/html .shtml

    AddOutputFilter INCLUDES .shtml

</Directory>


<Directory "/var/www/icons">

    Options Indexes MultiViews FollowSymLinks

    AuthName "auth test"

    AuthType Basic

    AuthUserFile /var/www/icons/.auth

    Require valid-user

</Directory>



# htpasswd -c ./.auth test





limitrequestbody 옵션은 아래쪽에 추가해 주면 어렵지 않게 반영된다.

lispro06 (비회원)
    • 글자 크기

댓글 달기

첨부 (0)
위로