Separate virtual hosts conf file

3 posts / 0 new
Last post
#1 Thu, 04/21/2016 - 07:49
blooddrainer

Separate virtual hosts conf file

Hi guys,

Is it possible to make virtual host conf files to be separate because httpd.conf file become really large.. I'm using virtualmin Virtualmin 5.01.gpl on CentOS Linux 6.7, Webmin 1.791. Is it possible to set the directory for all accounts to be home directory of account.

Thank you!

Thu, 04/21/2016 - 14:30
AustinTX

https://www.virtualmin.com/node/6087

See if you can enable separate conf files [per Joe] by clicking through:
Webmin | Servers | Apache Webserver | Module Config (at top of page on left side depending on your theme).

You should then be in Virtualmin's Configurable Options for managing Apache (NOT Configure Apache Modules) and you'll see several preferences for combined vs separate conf files!

I'm not sure what will happen if you switch after you've already created a number of virtual servers. Good luck!

Fri, 12/13/2019 - 12:29
mrez

Thanks for the answer.. I found the place for this option.. it was helpful but as complement to Austins answer also you should not forget to add that custom directory path to httpd.conf file to include its *.conf files in apache/nginx webserver; because they are not being automatically included from virtualmin.

for example:

IncludeOptional .../your_domains_custom_dir/*.conf ==>> should be manually added to /etc/httpd/conf/httpd.conf for apache webservers
include .../your_domains_custom_dir/*.conf; ==>> should be manually added to /etc/nginx/nginx.conf for nginx webservers