Using Include Files¶
By default the main OpenLiteSpeed configurationĀ file (httpd_config.conf
) defines different virtual host configuration file locations. OLS gets all server and virtual host configurations through this main file.
Technically, you can use include files in the OLS configuration, however this is not currently supported by the WebAdmin Console. Support for include files is coming to WebAdmin in the future, but until it does, if you intend to use include files, then you must edit the configuration via text editor. Include files are specified at the highest level and can contain wildcards at any point in the specification.
For example:
include $SERVER_ROOT/conf/l1/*/*.conf
This will look for the directories in the $SERVER_ROOT/conf/l1
directory and then include all of the files in the immediate level below that (but only in that level) with the suffix .conf
.
Example
$SERVER_ROOT/conf/l1/l2-1/sample1.conf
and SERVER_ROOT/conf/l1/l2-2/sample2.conf
would be included but not $SERVER_ROOT/conf/l1/sample3.conf
(level above) or SERVER_ROOT/conf/l1/l2-1/l3/sample4.conf
(level below).
Alternately, you may take advantage of DirectAdmin's OpenLiteSpeed support, which does split OLS configurations into different include files.