Overview
This guide will show how you can customize the VirtualHost Config in Apache.
Webuzo includes the following files in each VirtualHost (SSL and Non SSL) configuration for all the domains.
If you would like to customize config for all the domains for a user configure the file in the following folder for each user :
Note: You will need to manually create the apache2, custom, and domain folders under /var/webuzo-data. Then, add the configuration file with your domain name inside /var/webuzo-data/apache2/custom/domains/domain.conf.The same procedure applies for all web servers, including Apache2, Nginx, OpenLiteSpeed, and LiteSpeed.
If you would like to customize config of apache2 for certain users configure the file in the following folder for each user :
/var/webuzo-data/apache2/custom/users/USERNAME.confIf you would like to customize config of apache2 for certain domains configure the file in the following folder for each domain :
/var/webuzo-data/apache2/custom/domains/DOMAIN.confIf you would like to customize global config of apache2 for all domains configure the file in the following folder :
/usr/local/apps/apache2/etc/conf.d/custom.confIf you would like to customize config of nginx for certain users configure the file in the following folder for each user :
/var/webuzo-data/nginx/custom/users/USERNAME.confIf you would like to customize config of nginx for certain domains configure the file in the following folder for each domain :
/var/webuzo-data/nginx/custom/domains/DOMAIN.confIf you would like to customize global config of nginx for all domains configure the file in the following folder :
/usr/local/apps/nginx/etc/conf.d/custom.confIf you would like to customize config of openlitespeed for certain users configure the file in the following folder for each user :
/var/webuzo-data/openlitespeed/custom/users/USERNAME.confIf you would like to customize config of openlitespeed for certain domains configure the file in the following folder for each domain :
/var/webuzo-data/openlitespeed/custom/domains/DOMAIN.confHere is Sample configuration for proxy domain to port (application should be running on this port) and restart openlitespeed service.
NOTE : Make sure Backend NodeJS is running on specified port (for example here 3006) and you can replace nodebackend with any random name.
extprocessor nodebackend {
type proxy
address 127.0.0.1:3006
maxConns 100
initTimeout 60
retryTimeout 0
respBuffer 0
}
context / {
type proxy
handler nodebackend
}If you would like to customize config of litespeed for certain users configure the file in the following folder for each user :
/var/webuzo-data/lsws/custom/users/username.confIf you would like to customize config of litespeed for certain domains configure the file in the following folder for each domain :
/var/webuzo-data/lsws/custom/domains/domain.confOpenResty configuration
If you would like to customize config of openresty for certain users configure the file in the following folder for each user :
/var/webuzo-data/openresty/custom/users/USERNAME.confIf you would like to customize config of openresty for certain domains configure the file in the following folder for each domain :
/var/webuzo-data/openresty/custom/domains/DOMAIN.confIf you would like to customize global config of openresty for all domains configure the file in the following folder :
/usr/local/apps/openresty/etc/conf.d/custom.conf