Do I have to duplicate the Virtualhost directives for port 80 and 443?

后端 未结 6 1261
长发绾君心
长发绾君心 2021-01-30 05:19

I have a long and intricate list of directives, and I have to duplicate them into separate groups for ports 80 and 443 because I\'m using

6条回答
  •  猫巷女王i
    2021-01-30 05:25

    You can use any # of hosts and ports in a single Virtualhost directive.

     ...  
    

    In My case I used.

    
      ServerName loop.lk
    
     ....
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/local.crt
    
    
    

提交回复
热议问题