Skip to content

Instantly share code, notes, and snippets.

@yanzhihong23
yanzhihong23 / avenger-nginx.conf
Created May 19, 2017 11:15
nginx config for angular app deploy in subpath
server {
server_name gist.github.com
root /usr/share/gist;
index index.html
location / {
try_files $uri $uri/ =404;
}
location /avenger/ {
@givanse
givanse / Nginx + Ember App
Last active February 20, 2021 13:08
Nginx + Ember
server {
root /var/www/{Your App Directory Path Here};
index index.html index.htm;
server_name {Your website URL or IP address here};
location / {
try_files $uri $uri/ /index.html?/$request_uri;
}
}