Browse Source

proper mapping of single-page app files to web root

tags/v0.1.8
Jonathan Cobb 4 years ago
parent
commit
0afb8150e3
4 changed files with 4 additions and 0 deletions
  1. +1
    -0
      automation/roles/nginx/templates/site_node.conf.j2
  2. +1
    -0
      automation/roles/nginx/templates/site_node_alias.conf.j2
  3. +1
    -0
      automation/roles/nginx/templates/site_sage.conf.j2
  4. +1
    -0
      automation/roles/nginx/templates/site_sage_alias.conf.j2

+ 1
- 0
automation/roles/nginx/templates/site_node.conf.j2 View File

@@ -6,6 +6,7 @@ server {
index index.html;

location / {
rewrite ^/(\w+/)+(?<basename>.*)$ /$basename break;
try_files $uri /index.html =404;
}



+ 1
- 0
automation/roles/nginx/templates/site_node_alias.conf.j2 View File

@@ -6,6 +6,7 @@ server {
index index.html;

location / {
rewrite ^/(\w+/)+(?<basename>.*)$ /$basename break;
try_files $uri /index.html =404;
}



+ 1
- 0
automation/roles/nginx/templates/site_sage.conf.j2 View File

@@ -6,6 +6,7 @@ server {
index index.html;

location / {
rewrite ^/(\w+/)+(?<basename>.*)$ /$basename break;
try_files $uri /index.html =404;
}



+ 1
- 0
automation/roles/nginx/templates/site_sage_alias.conf.j2 View File

@@ -6,6 +6,7 @@ server {
index index.html;

location / {
rewrite ^/(\w+/)+(?<basename>.*)$ /$basename break;
try_files $uri /index.html =404;
}



Loading…
Cancel
Save