Custum root directive for some vhosts

rvandam

Verified User
Joined
Aug 28, 2009
Messages
39
The Nginx root directive is standard like:
root /home/example/domains/example.com/public_html;

For some domains I have to change this into:
root /home/example/example;

How do I manage this?

I tried this using Custom HTTPD Configurations, but I end up with errors like diplicate root directive.
 
Nevermind. It was as easy as setting |?DOCROOT=/home/example/example| in the custom httpd configuration
 
The following code in your Custom HTTPD Configuration should do the trick:
Code:
|?DOCROOT=/home/example/example|
 
Back
Top