<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://tm.root-n.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>Tipsというかメモ server:apache:basic_authentification</title>
        <description></description>
        <link>https://tm.root-n.com/</link>
        <lastBuildDate>Tue, 18 Nov 2025 16:46:03 +0900</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>https://tm.root-n.com/lib/images/favicon.ico</url>
            <title>Tipsというかメモ</title>
            <link>https://tm.root-n.com/</link>
        </image>
        <item>
            <title>apache :: Basic認証で「404 Not Found」の対処方法</title>
            <link>https://tm.root-n.com/server:apache:basic_authentification:404_not_found</link>
            <description>Basic認証を設定したら、なぜか「404 Not Found」になってしまう場合の対処方法です。


	*  通常の .htaccess


AuthType Basic
AuthName valid_user
AuthUserFile /path/to/.htpasswd
Require valid-user





↓




	*  「404 Not Found」を回避する .htaccess</description>
        <category>server:apache:basic_authentification</category>
            <pubDate>Wed, 26 Sep 2018 13:39:09 +0900</pubDate>
        </item>
        <item>
            <title>apache :: 特定のIPアドレス以外でBasic認証</title>
            <link>https://tm.root-n.com/server:apache:basic_authentification:allow_from_specific_ipaddr</link>
            <description>特定のIPアドレス以外は Basic認証 をかける設定です。


	*  .htaccess


AuthType Basic
AuthName administrator
AuthUserFile /path/to/.htpasswd
Require valid-user
Satisfy any
Order deny,allow
Allow from x.x.x.x # 許可するIPアドレス
Allow from x.x.x.x # 複数OK
Deny from all</description>
        <category>server:apache:basic_authentification</category>
            <pubDate>Sun, 01 May 2011 09:30:14 +0900</pubDate>
        </item>
        <item>
            <title>apache :: Basic認証の簡単設定</title>
            <link>https://tm.root-n.com/server:apache:basic_authentification:basic_authentification</link>
            <description>cygwin の crypt 関数 でパスワードを生成
% crypt pass1234
% yONdCpxWJF5VI
パスワード：pass1234 を生成





.htpasswd
taro:yONdCpxWJF5VI
ユーザ名:暗号化パスワード





.htaccess
AuthType Basic
AuthName administrator
AuthUserFile /var/www/htdocs/member/.htpasswd
Require valid-user
/var/www/htdocs/member/ 配下のアクセスに Basic認証を設定する。

path は必ずフルパスで記述。</description>
        <category>server:apache:basic_authentification</category>
            <pubDate>Sun, 01 May 2011 09:30:39 +0900</pubDate>
        </item>
    </channel>
</rss>
