Nginx directory configuration
Posted: Tue Feb 16, 2016 9:24 pm
I use some PHP Frameworks that require custom Nginx configurations. In Phalcon PHP Framework I need to change the root to the public directory and also add:
to the server section in the website .conf file.
What is the best way to accomplish this with Vesta? If possible in a way that when I make a change to the website in Vesta it does not lose the configuration.
Code: Select all
location / {
try_files $uri $uri/ /index.php?_url=$uri&$args;
}
What is the best way to accomplish this with Vesta? If possible in a way that when I make a change to the website in Vesta it does not lose the configuration.