Skip to content

Instantly share code, notes, and snippets.

@rw3iss
Last active July 27, 2023 20:45
Show Gist options
  • Save rw3iss/79f3c2020f9f4e93061a2a74e1776337 to your computer and use it in GitHub Desktop.
Save rw3iss/79f3c2020f9f4e93061a2a74e1776337 to your computer and use it in GitHub Desktop.
nginx multi-site config
server {
listen 80;
listen [::]:80;
server_name tier33.ryanweiss.net;
root /web/tier33/build;
index index.html;
location / {
try_files $uri $uri/ /index.html?&args;
#proxy_set_header X-Real-IP $remote_addr;
#proxy_pass http://localhost:3000;
}
}
server {
listen 80;
listen [::]:80;
server_name ryanweiss.net www.ryanweiss.net;
root /web/ryanweiss/build;
index index.html;
location / {
try_files $uri $uri/ /index.html?&args;
#proxy_set_header X-Real-IP $remote_addr;
#proxy_pass http://localhost:4500;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment