Skip to content

Instantly share code, notes, and snippets.

@lavarini
Created October 10, 2013 17:22
Show Gist options
  • Save lavarini/6922186 to your computer and use it in GitHub Desktop.
Save lavarini/6922186 to your computer and use it in GitHub Desktop.
map $http_host $user_ciframobile {
default "bruno.souza";
"m.bruno.cifraclub.cc" "bruno.souza";
"m.bela.cifraclub.cc" "izabela.bittencourt";
"m.pedro.cifraclub.cc" "pedro.chaves";
"m.lavarini.cifraclub.cc" "alexandre.lavarini";
"m.daniel.cifraclub.cc" "daniel.lima";
"m.samuel.cifraclub.cc" "samuel.vignoli";
}
server {
ssi on;
ssi_types text/html application/javascript;
set $php_fpm_socket "/var/run/php5-fpm-cifraclub.sock";
server_name ~^m.(?P<domain>bruno|bela|pedro|lavarini|daniel|samuel).cifraclub.cc;
root /home/desenvolvedores/$user_ciframobile/public_html/NovoCifraClub/Mobile;
charset utf-8;
source_charset utf-8;
error_page 404 /404.php;
access_log off;
location / {
index index.php;
include fastcgi_php;
rewrite ^ /index.php?_url=$uri break;
}
location /static/ {
autoindex on;
root /home/desenvolvimento/$user_ciframobile/public_html/NovoCifraClub/Static/Mobile;
}
# location /static/ {
# alias /home/desenvolvimento/$user_ciframobile/public_html/NovoCifraClub/Static/Mobile;
# }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment