Apache 2.4多站点配置

针对http跳转https.net

步骤一:blog

打开httpd.conf ,取消 LoadModule rewrite_module modules/mod_rewrite.so前的注释it

步骤二:module

最后,解决方案是在 VirtualHost 节点里,添加以下配置:配置

    RewriteEngine onim

    RewriteCond   %{HTTPS} !=onrewrite

    RewriteRule   ^(.*)  https://%{SERVER_NAME}$1 [L,R]img

例如:注释

参考:http://blog.csdn.net/the_victory/article/details/51006167vi

相关文章
相关标签/搜索