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

后端 未结 6 1260
长发绾君心
长发绾君心 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:51

    Can't you use an include directive to include the common rules. here

    article

    eg.:

    
        ...
        include conf/common_rule.conf
    
    
    
        ...
        include conf/common_rule.conf
     
    
    
        ... #SSL rules
        include conf/common_rule.conf
      
    

提交回复
热议问题