On a Linux based web server I have Apache2 running and in my current httpd.conf file I have the following:
Include conf/extra/httpd-ssl.conf
In httpd-ssl.conf I manage all of my vhost details. Currently there are ~15 entries in there and I need to add more.
I’d like to have a second file, call it httpd-ssl2.conf that would contain nothing but specific entries in an attempt to help keep things a little more organized.
Are there any reasons not to do this that I should be thinking of?
Nothing wrong with this. A lot of distributions and installs of Apache do this already. For example, on gentoo’s Apache2, it has these lines in the
httpd.conf:And you can create as many ssl or non-ssl vhosts in separate files or all in one file in the
/vhosts.ddirectory. You can organize them any way that you want. If you don’t want to use a*.confand want to be more explicit (which might be a little safer) you can just add each .conf file explicitly in yourhttpd.conf: