0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ベーシック認証(社内はIP認証でスキップする)の設定

Last updated at Posted at 2020-05-18

固定IP(社内)からのアクセスは、認証をスキップする
それ以外からのアクセスの場合は、通常通りBasic認証を行う設定。

# Basic認証orIP認証
Satisfy Any
# Basic認証
AuthUserFile (.htpasswdの場所)
AuthGroupFile /dev/null
AuthName "Protected Area"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
# 特定のIPアドレスを除外する記述
order deny,allow
deny from all
allow from xxx.xxx.xxx.xxx

Wordpress用

# Basic認証orIP認証
Satisfy Any

# Basic認証
AuthUserFile "(.htpasswdの場所).htpasswd"
AuthName "Protected Area"
AuthType Basic
require valid-user

<Files "xmlrpc.php">
Satisfy any
order allow,deny
allow from all
</Files>

# 特定のIPアドレスを除外する記述
order deny,allow
deny from all

# 許可するIP
allow from xxx.xxx.xxx.xxx
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?