Skip to content

Instantly share code, notes, and snippets.

/gist:423cbe11f91e4d342dd6 Secret

Created Mar 4, 2015
Embed
What would you like to do?
worker_processes 8;
events {
worker_connections 1024;
}
http {
root htdocs;
include mime.types;
add_before_body /subsites/dropletlocal/library/global/func-global.class.php;
server {
listen 80;
server_name localhost;
location / {
root htdocs/subsites/dropletlocal;
index proxy.php;
}
location ~ \.php$ {
root htdocs/subsites/dropletlocal;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
server_name ***.es.vc;
location / {
root htdocs/frontend;
index index.php;
}
location ~ \.php$ {
root htdocs/frontend;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
server_name ***.es.vc;
location / {
root htdocs/subsites/***;
index index.php;
}
location ~ \.php$ {
root htdocs/subsites/***;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
server_name ***.es.vc;
location / {
root htdocs/subsites/***;
index index.php;
}
location ~ \.php$ {
root htdocs/subsites/***;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment