我有一个服务器,我托pipe多个网站上像http://this.example.com/site1,http://this.example.com/site2,http://this.example.com/site3 。 我正在尝试在https://this.example.com/site4添加一个安全网站。 这是我想要使用安全连接的唯一一个。
我设置了一切,似乎工作,但只要我访问https://this.example.com/site4它redirect到我的所有其他网站的HTTPS,直到我清除浏览器caching。 有没有我可以用来帮助保持httpstream量redirect到https的设置? 内容default-ssl config下面。
<IfModule mod_ssl.c> <VirtualHost _default_:443> ServerAdmin webmaster@localhost ServerName this.example.com DocumentRoot /var/www/ <Directory /var/www/site4> RackBaseURI /site4 RackEnv production Options -MultiViews </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined SSLEngine on SSLCertificateFile /path/to/cert SSLCertificateKeyFile /path/to/key SSLCertificateChainFile /path/to/chain/file <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown </VirtualHost> </IfModule>