我有一个重定向规则:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>
<VirtualHost *:7080>
ServerAdmin webmaster@localhost
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^/?(.*) https://merchant.juspay.in/$1 [R,L]
RewriteCond %{SERVER_NAME} demo.juspay.in
RewriteRule ^/?(.*) https://merchant.juspay.in/$1 [R,L]
</VirtualHost>
<VirtualHost *:8080>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://api.juspay.in
</VirtualHost>
在阿帕奇。我需要一种方法来编写规则,使80
我的 ip( localhost
) 的端口不应该被重定向到8443
.
我怎样才能做到这一点?