<acronym id='fntfa'><em id='fntfa'></em><td id='fntfa'><div id='fntfa'></div></td></acronym><address id='fntfa'><big id='fntfa'><big id='fntfa'></big><legend id='fntfa'></legend></big></address>

      <dl id='fntfa'></dl>

      1. <tr id='fntfa'><strong id='fntfa'></strong><small id='fntfa'></small><button id='fntfa'></button><li id='fntfa'><noscript id='fntfa'><big id='fntfa'></big><dt id='fntfa'></dt></noscript></li></tr><ol id='fntfa'><table id='fntfa'><blockquote id='fntfa'><tbody id='fntfa'></tbody></blockquote></table></ol><u id='fntfa'></u><kbd id='fntfa'><kbd id='fntfa'></kbd></kbd>
        1. <fieldset id='fntfa'></fieldset>
          <span id='fntfa'></span>

        2. <ins id='fntfa'></ins>
            <i id='fntfa'></i>

            <code id='fntfa'><strong id='fntfa'></strong></code>
            <i id='fntfa'><div id='fntfa'><ins id='fntfa'></ins></div></i>

            Linux操作系统下Apache配置虚拟主机+SSL

            • 时间:
            • 浏览:8
            • 来源:124软件资讯网

              1.下载httpd软件 ,编译Apache:

              ./configure --enable-ssl(使之支持SSL)

              make

              make install

              2.httpd.conf中把#Include conf/exta..vhosts.conf前的#去掉

              在vhosts.conf中设置:

              DocumentRoot:usr/local/w1

              ServerName:www.shnu1.cn

              order deny,allow

              allow from all

              (添加会见网页的权限)

              3.windows的system32下的hosts文件中添加:

              10.10.134.26 www.w1.com

              10.10.134.26 www.w2.com

              4. 在w1和w2文件夹下划分建立w1.htm和w2.htm

              5. 重启Apache:usr/local/apache2/bin/apachecl1 restart

              6.IE地址栏划分输入w1.com和w2.com  ,测试w1.htm和w2.htm

              7.天生证书

              cd /usr/local/apache2/conf

              openssl req -new -x509 -nodes -out server.crt -keyout server.key

              httpd.conf中打开httpd-ssl.conf设置即可