Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
服务器包含证书 (*.crt)。并且有两个不同的用户。一个是在浏览器证书(*.p12)中设置的,它签署了服务器证书。用户输入文件夹example.com/a
没有证书的用户进入example.com/b
如何使用设置 apache 来做到这一点?重定向?
SSLVerifyClient optional SSLOptions +StdEnvVars SSLCACertificateFile path/to/file RewriteEngine on RewriteCond %{SSL_CLIENT_VERIFY} SUCCESS RewriteRule ^/(.*) /a/(.*) [L] RewriteCond %{SSL_CLIENT_VERIFY} FAILED RewriteRule ^/(.*) /b/(.*) [L]