When we add a website under sites using ISPConfig interface, it will create a file like "mysite.com.vhost" under this path "/etc/nginx/sites-available/". My question is on how can I add a default variable on this file like the following: Code: location /status { fastcgi_pass 127.0.0.1:9017; #fastcgi_pass unix:/var/lib/php5-fpm/web37.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } fastcgi_pass should be filled automatically based on the selection under options tab. If I select Use Socket For PHP-FPM, the value of fastcgi_pass should be fastcgi_pass unix:/var/lib/php5-fpm/web37.sock. Of course web37 is ISPConfig generated Linux user and it should be filled according to ISPConfig. If TCP is selected then it should be filled out by ISPConfig automatically like: fastcgi_pass 127.0.0.1:9017;
you can modify the default template of the vhost. you find all templates in /usr/local/ispconfig/server/conf/. the modified version of the config file has to be stored in /usr/local/ispconfig/server/conf-custom/
There is just one file with nginx and vhost in its name, so you could not have missed it when you looked into the directory nginx_vhost.conf.master