我正在使用Apache的HTTP代理将SSL层添加到127.0.0.1:4444
,它效果很好,但我有问题,我的Web浏览器上有一个双斜线...
这是配置
#
# Proxy
#
ProxyRequests Off
<Proxy *>
Order Allow,Deny
Allow from all
Require all granted
</Proxy>
ProxyPass / http://127.0.0.1:4444
ProxyPassReverse / http://127.0.0.1:4444
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:4444%{REQUEST_URI} [P,QSA]
我得到http://example.fr//login.view
我想要http://example.fr/login.view
是否可以这样做并删除斜线?
只需在图案中添加最终斜线,
ProxyPass / http://127.0.0.1:4444/
ProxyPassReverse / http://127.0.0.1:4444/