Skip to content

Instantly share code, notes, and snippets.

Created March 4, 2015 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/423cbe11f91e4d342dd6 to your computer and use it in GitHub Desktop.
Save anonymous/423cbe11f91e4d342dd6 to your computer and use it in GitHub Desktop.
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