indexoptions

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

indexoptions [2020/02/03 07:22] – 만듦 koovindexoptions [2022/05/10 01:07] (현재) koov
줄 1: 줄 1:
 ====== IndexOptions ====== ====== IndexOptions ======
  
 +인덱싱 옵션에서 전체 파일명 출력을 해줄경우
 <WRAP prewrap> <WRAP prewrap>
 <code gettext> <code gettext>
줄 9: 줄 9:
 </WRAP> </WRAP>
  
 +
 +특정 아이피 대역만 열어주고 싶은경우
 +<WRAP prewrap>
 +<code gettext>
 +Alias /repo /repo
 +Alias /pub /pub
 +Alias /iso /iso
 +Alias /document /document
 +Alias /doc /document
 +
 +<Directory "/repo*">
 +    Options Indexes FollowSymLinks
 +    AllowOverride AuthConfig
 +    AuthType Basic
 +    AuthName "Repository"
 +    AuthUserFile /etc/httpd/.authusers-repo
 +
 +    SetEnvIF X-Forwarded-For "^192.168." AllowIP
 +    SetEnvIF X-Forwarded-For "^$" AllowIP
 +
 +    <RequireAny>
 +      Require env AllowIP
 +      Require valid-user
 +    </RequireAny>
 +</Directory>
 +
 +<Directory "/document">
 +    Options Indexes FollowSymLinks
 +    AllowOverride None
 +
 +    Require all granted
 +</Directory>
 +
 +<Directory "/pub">
 +    Options Indexes FollowSymLinks
 +    AllowOverride None
 +
 +    Require all granted
 +</Directory>
 +
 +<Directory "/iso">
 +    Options Indexes FollowSymLinks
 +    AllowOverride None
 +
 +    Require all granted
 +</Directory>
 +</code>
 +</WRAP>
  • indexoptions.1580714572.txt.gz
  • 마지막으로 수정됨: 2020/02/03 07:22
  • 저자 koov