I am setting up a public web server for several of my own web sites, using Webmin and Apache 2.
Adding a virtual host and special options for it is fairly straight-forward with Webmin.
However, I need some advice on how to set up both a http and a https configuration, using the same options.
Currently, my technique is to add two virtual hosts, one for port 80 and one for 443. That creates two separate .conf files. The problem is that each time I add an option to one virtual host, I have to remember doing the same for the other as well.
How can I avoid this redundant duplication of options per site?
I know about the 'Include' directive, but how do I manage this efficiently with Webmin, so that Webmin doesn't get confused? I guess I'll have to manually create the include file first and move some directives into it before adding the second virtual host with the SSL option?
How do others approach this?
Basically, it's like this question, but with Webmin thrown in.