Wildcard config file include?

#1
Is it possible to do something similar to Apache where you set up a wildcard include and have a config file to define each vhost without just using apache config files? It would be nice to not have to code a script to edit a file with potentially thousands of vhost entries if it is unnecessary.
 

Pong

Administrator
Staff member
#2
Thank you for your recommendation. Actually the similar feature is there already and you definitely can keep your VHost configuration files separately, though it may not be exactly wildcard-include.

For LSWS enterprise, it normally load Apache configuration hence you can add vhost the same way as apache, including your recommended wildcard-include. Even you configure LSWS Enterprise natively, the Vhost configuration files can be separate file other than main configuration file.

For OpenLiteSpeed, it will be configured naively and each vost configuration will be kept as separate file at defined location from main configuration.
 
Last edited:

NiteWave

Administrator
#5
Is there a way to configure the litespeed specific features in an apache config file?
some of them can. for example, apache php has no php suExec ProcessGroup mode(it's a litespeed only feature), to enable this mode under litespeed and not affect apache if switching back to apache, add
<IfModule LiteSpeed>
LSPHP_ProcessGroup on
LSPHP_Workers 15
</IfModule>
in httpd.conf

more detail please refer
https://www.litespeedtech.com/products/litespeed-sapi/php/suexec-processgroup
 
Top