Custom Virtualhost Overrides

Access Level: This tool is exclusively available to the Master Organisation and Resellers.

This tool allows you to inject custom virtual host directives alongside the configuration generated by LxRoot. This is supported for all websites hosted on Apache and Nginx webservers, including any associated addons, aliases, or subdomains.

How it Works

The directives you enter are injected into the primary virtual host file below all standard LxRoot directives. This positioning allows your custom config to override existing settings if necessary.

Configuration Steps:

  1. Select Websites from the left-hand menu.
  2. Locate the website you wish to modify.
  3. In the dropdown menu, select Overrides.
  4. Scroll to the VirtualHost config section.
  5. Click Edit configuration.
  6. Enter your custom directives in the editor and click Save.

Safety & Manual Recovery

Advanced Tool

Entering incorrect syntax in the editor may prevent the web server from restarting. Always validate your syntax before saving.

If a syntax error breaks the web server and you cannot access the control panel to revert it, you can manually edit or remove the configuration via SSH:

                # File path for manual overrides (Replace {domain} with your site domain)
/var/local/LxRoot/apache/vhost_includes/{domain}.conf