Skip to content

Instantly share code, notes, and snippets.

@RyoSugimoto
Last active January 14, 2021 05:40
Show Gist options
  • Save RyoSugimoto/aac8f016193cbd6381a5 to your computer and use it in GitHub Desktop.
Save RyoSugimoto/aac8f016193cbd6381a5 to your computer and use it in GitHub Desktop.
特定のディレクトリだけBASIC認証を解除する。
Satisfy any
order allow,deny
allow from all
# ファイルを指定する
<Files "example.html">
Satisfy any
order allow,deny
allow from all
</Files>
# 拡張子を指定する
<FilesMatch "\.(gif|jpe?g|png)$">
# ディレクトリを指定する
<FilesMatch "\/?example">
Satisfy any
order allow,deny
allow from all
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment