Wildcard Include in httpd_config

#1
Hi.

I want to move the virtualhost block from the main config file to seperate files with an include.

I have a file here:
/usr/local/lsws/conf/custom/vh-example.conf

Which contains:

virtualhost example.com {
vhRoot /home/example/example/public
configFile /usr/local/lsws/conf/vhosts/example/vhconf.conf
allowSymbolLink 1
enableScript 1
restrained 1
}

In my main config file (/usr/local/lsws/conf/httpd_config.conf), I have a wildcard include:

include /usr/local/lsws/conf/custom/*.conf

However, it does not load the vh-example.conf file within this directory.

If I hardocde the path, it works:

include /usr/local/lsws/conf/custom/vh-example.conf

Any idea why a wildcard include would not work?

Currently running OLS 1.7.19

Thanks!
 
Last edited:
#3
Thanks for the reply!

The only file within that folder is vh-example.conf, contents:

virtualhost example.com {
vhRoot /home/example/example/public
configFile /usr/local/lsws/conf/vhosts/example/vhconf.conf
allowSymbolLink 1
enableScript 1
restrained 1
}
 
Top