[英]server-status in wordpress htaccess
我想從mod_status啟用服務器狀態
我在.htaccess文件上有這個
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !=/server-status
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
httpd.conf是
<Location /server-status>
SetHandler server-status
Order Allow,Deny
Deny from all
Allow from 111.11.1.1
</Location>
我正在使用我的外部IP。 我正在使用該網站來知道我的IP地址。 https://www.whatismyip.com/
但是,當我訪問example.com/server-status時,它是一個403禁止訪問,但是當我更改http conf以允許所有內容都可以訪問時,但我希望它只能由我的計算機訪問
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.