• <tr id='rz92e'><strong id='rz92e'></strong><small id='rz92e'></small><button id='rz92e'></button><li id='rz92e'><noscript id='rz92e'><big id='rz92e'></big><dt id='rz92e'></dt></noscript></li></tr><ol id='rz92e'><table id='rz92e'><blockquote id='rz92e'><tbody id='rz92e'></tbody></blockquote></table></ol><u id='rz92e'></u><kbd id='rz92e'><kbd id='rz92e'></kbd></kbd>
  • <dl id='rz92e'></dl>

  • <i id='rz92e'><div id='rz92e'><ins id='rz92e'></ins></div></i>

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

      <code id='rz92e'><strong id='rz92e'></strong></code>
      <ins id='rz92e'></ins>
      <i id='rz92e'></i>
          <span id='rz92e'></span>

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

            • 时间:
            • 浏览:2
            • 来源: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设置即可