I want to use simple virtual host configuration files, which include default .conf-Files.
Example:
File: vhost1
---------------
server {
include location.conf;
server_name www.myserver.org;
root /var/www/vhost1/;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9001;
}
}
---------------
File: location.conf
---------------
location ~ \.php$ {
include fastcgi_params;
# some optimization here
# Default if not overwritten in virtualhost
fastcgi_pass 127.0.0.1:9000;
}
---------------
location.conf have default configuration for all virtualhosts.
But on some vhosts i want to set other params (overwrite default). Is that possible?
Like in the example the vhost1 should have port 9001 not 9000.
Is it possible to include in vhost ?