如何configurationApache重写一个子域的http请求到正确目录的https请求?
例如,我有以下VirtualHostconfiguration:

不过,这会将http://redmine...us转换为https://redmine...us/redmine 。
另外,改变
RewriteRule ^(.*)$ https://%{HTTP_HOST}/redmine [R]
RewriteRule ^(.*)$ https://%{HTTP_HOST} [R]
似乎只是将HTTP请求redirect到HTTP://...us ,这是当前默认的/var/www/index.html页面。
有什么build议么?
尝试这个:
RewriteEngine On
RewriteCond%{HTTPS}closures
RewriteRule(。*)https://%{HTTP_HOST}%{REQUEST_URI}
http://www.cyberciti.biz/tips/howto-apache-force-https-secure-connections.html