KOROCHIN SITE
Notes Gallery Tools
English 日本語

Exempt specific virtual paths in Apache from Basic Authentication

Tech Knowledge
Published on November 6, 2023

実ディレクトリの場合

除外するディレクトリの.htaccessに以下を記述

Satisfy Any
Order allow,deny
Allow from all
Deny from none

仮想パスの場合

/hoge を除外する場合

<Location /hoge>
    Satisfy Any
    Order allow,deny
    Allow from all
    Deny from none
</Location> 

参考

特定のディレクトリやファイルをBASIC認証から除外する
VirtualHostで区切られたアプリケーションに対して個別にBasic認証をかける
apacheのDirectoryとLocationディレクティブの違い

Apache 2.4.x Basic Authentication Using an externally registered domain with AWS

Recent Articles

  • Detecting when the browser's "back" and "forward" buttons are pressed. October 18
    Article Image
  • Entity Framework Core Outer Join October 7
    Article Image
  • Use Azure SQL Database for free September 28
    Article Image
  • Google Search Console API September 24
    Article Image
  • Visual Studio 2026 Insiders September 13
    Article Image

Archives

  • Year 2025
  • Year 2024
  • Year 2023
  • Year 2022
  • Year 2021
  • Year 2020
©2015-2025 KOROCHIN SITE
| Disclaimer | Privacy Policy | Contact
Notes Gallery Tools
English 日本語

Recent Articles

  • Detecting when the browser's "back" and "forward" buttons are pressed. October 18
    Article Image
  • Entity Framework Core Outer Join October 7
    Article Image
  • Use Azure SQL Database for free September 28
    Article Image
  • Google Search Console API September 24
    Article Image
  • Visual Studio 2026 Insiders September 13
    Article Image

Archives

  • Year 2025
  • Year 2024
  • Year 2023
  • Year 2022
  • Year 2021
  • Year 2020