このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
Tag Cloud
このページへのアクセス
今日: 1 / 昨日: 1
総計: 268
- DokuWiki(35)
- 17 WSL2 + Docker(24)
- Dokuwiki.fl8.jp(18)
- counter(6)
- code2(4)
- color plugin(3)
最近の更新
このページへのアクセス
今日: 1 / 昨日: 1
総計: 268
文書の過去の版を表示しています。
CF-Connecting-IP でリモートIPを取得
remoteip_moduleを利用
※Aache 2.4
sudo a2enmod remoteip sudo systemctl restart apache2 apachectl -M | grep remo remoteip_module (shared)
/etc/apache2/conf-available/remoteip.conf
RemoteIPHeader CF-Connecting-IP
sudo a2enconf remoteip
sudo systemctl restart apache2
REMOTE_ADDR が CF-Connecting-IP になっているか確認
tail -f /var/log/apache2/access.log
あとは普通に.htaccessなどで制御
Order Deny,Allow Deny from all Allow from xxx.xxx.xxx.xxx Allow from xxx.xxx.xxx.xxx Allow from xxx.xxx.xxx.xxx