【发布时间】:2011-08-23 17:38:36
【问题描述】:
我的新主机使用带代理的 SSL,在我的旧主机上我可以在 htaccess 中使用此规则:
#old host
Options +FollowSymLinks
RewriteEngine On
RewriteBase /folder
SSLOptions +StrictRequire
SSLRequireSSL
SSLRequire %{HTTP_HOST} eq "www.website.eu"
ErrorDocument 403 https://www.website.eu/folder
但这在我的带有 SSL 代理的新主机上不起作用我尝试了以下但没有运气:
#new host
Options +FollowSymLinks
RewriteEngine On
RewriteBase /folder
RewriteCond %{HTTP:X-SSLproxy} !Yes
ErrorDocument 403 https://www.website.eu/folder
我怎样才能做到这一点?
谢谢!
【问题讨论】:
-
离题。请阅读FAQ。