-
-
Save ngw/9a1ca5095392fb083f05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; ## listen for ipv4 | |
listen [::]:80 default ipv6only=on; ## listen for ipv6 | |
server_name "~^(.+)\.stylej\.am$"; | |
access_log /var/log/nginx/stylejam-star.access.log; | |
set $subdomain $1; | |
try_files $uri $uri/index.html; | |
rewrite ^(.*)$ /$subdomain$request_uri?; | |
location / { | |
proxy_pass http://portfolios.stylej.am; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment