Skip to content

Instantly share code, notes, and snippets.

View StephanieSunshine's full-sized avatar

Stephanie Sunshine StephanieSunshine

  • Prisma Digital Technologies
  • Pacific Northwest, United States
View GitHub Profile
@StephanieSunshine
StephanieSunshine / nginx.conf
Last active October 11, 2015 21:08 — forked from caquino/nginx.conf
Hacking Nginx to do the same mass deployment trick of phusion passenger mass deployment in standalone -- Not verified to work yet
server {
listen 80 default;
# server_name ~^(www\.)?(?<domain>.+)$;
# The goal here is to allow for subdomains. We stack in reverse
server_name ~^(?<subdomain>\.)?(?<domain>.+)$;
root /opt/sites/$domain/$subdomain/public_html/;
access_log /opt/sites/$domain/logs/access.log;