메뉴 건너뛰기

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 (비회원)
    • 글자 크기
[PHP] XML parser의 이용 (by 박영식) [SSL] 로그 설정 및 확인(SSLv3 지원 여부) (by lispro06)

댓글 달기

suritam9
2022.10.26 조회 22
lispro06
2017.07.08 조회 1532
박영식
2009.08.01 조회 5409
lispro06
2017.08.13 조회 2020
suritam9
2024.03.10 조회 1
lispro06
2017.10.01 조회 542
첨부 (0)
위로