make webmin/virtualmin store domains in separate files

hi I resently moved from Suse to Centos and using virtualmin GPL

on suse every domain had a separate file in /etc/apache2/vhosts.d

but in centos its all stored in httpd.conf

I tried to change in webminmodule apache - module config made a directory: /etc/http/vhosts.d and set the variable : File or directory to add virtual servers to: to use the same directory

but then I get this error:

Failed to open /etc/http/vhosts.d/ for writing : Bad file descriptor at /usr/libexec/webmin/web-lib-funcs.pl line 1323

Status: 
Closed (fixed)

Comments

This is possible in Virtualmin .. just make sure the /etc/http/vhosts.d directory already exists, and that you don't have a trailing / at the end of the path on the Module Config page.

Also, make sure that in the main httpd.conf file there is a line like :

Include /etc/http/vhosts.d/*