forked from xxxrobot/nginx-webmin
-
Notifications
You must be signed in to change notification settings - Fork 19
Add support for aliases of virtualserver #2
Copy link
Copy link
Open
Description
When I create alias of domain, in apache all creates normally, but nginx are configured to separate folder, that don't exists.
How to reproduce:
- Create in virtualmin new virtualserver example.com
In nginx example.com.conf you will see:
access_log /home/example.com/logs/example.com.access.log;
error_log /home/example.com/logs/example.com.error.log; - Create via virtualmin the alias of example.com, named example2.com
You will see in example2.com.conf:
access_log /home/example.com/domains/example2.com/logs/example2.com.access.log;
error_log /home/example.com/domains/example2.com/logs/example2.com.error.log;
But if you create the aliases (not sub-servers), those folders will not created and you will got the error on restarting nginx:
# nginx -t
the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test failed
Can you fix this problem?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels