buy
Custom VirtualHost Config

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.

Apache2 Configuration

/var/webuzo-data/apache2/custom/users/USERNAME.conf

If 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.conf

Nginx Configuration

If 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.conf

OpenLiteSpeed Configuration

/var/webuzo-data/openlitespeed/custom/users/USERNAME.conf

If 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.conf

Here 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
}

LiteSpeed Configuration

/var/webuzo-data/lsws/custom/users/username.conf

If 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.conf
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list