HTTP和HTTPS混合问题

时间:2015-04-04 07:31:05

标签: apache http ubuntu ssl ubuntu-12.04

我有一个Ubuntu 12.04 LTS(64位)的专用服务器。该服务器用于网站托管,它有Apache。我有一些使用SSL的网站。因此服务器也安装了SSL mod。使用SSL(端口443)的网站运行良好。使用端口80的网站正常工作,但是当我将前缀https放在正常的http网站上时,问题就开始了。 Apache为此网站设置了其他SSL站点证书,浏览器对此发出警告。这是我的普通网站虚拟主机文件(端口80):

<VirtualHost *:80>
        ServerAdmin contact@domain.com
        ServerName domain.com

        # Indexes + Directory Root.
        DirectoryIndex index.html index.php
        DocumentRoot /home/www/domain/htdocs/

        # CGI Directory
        ScriptAlias /cgi-bin/ /home/www/domain/cgi-bin/
        <Location /cgi-bin>
                Options +ExecCGI
        </Location>


        # Logfiles
        ErrorLog  /home/www/domain/logs/error.log
        CustomLog /home/www/domain/logs/access.log combined
</VirtualHost>

如何删除所有http网页的SSL?是否有某些类型的代码在端口80网站上禁用SSL并将其重定向到http网站?

0 个答案:

没有答案