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

后端 未结 6 1365
长发绾君心
长发绾君心 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条回答
  •  清歌不尽
    2021-01-30 05:47

    You could put the common configuration into a separate file and include it in both VirtualHost segments. For example:

    
      Include conf/common.conf
    
    
    
      Include conf/common.conf
      (put your ssl specific cofiguration stuff here ...)
    
    

提交回复
热议问题