quickfix: nginx: have nginx serve the fallback index.html with a 200 instead of a 404 (#1742)
Nginx serves index.html for all pages, but with a 404. This changes it to instead return a 200.
This commit is contained in:
		
							parent
							
								
									d446857cea
								
							
						
					
					
						commit
						6232103e60
					
				| @ -34,12 +34,10 @@ server { | |||||||
|         root /usr/share/nginx/html; |         root /usr/share/nginx/html; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     # fallback to index for any page |  | ||||||
|     error_page 404 /index.html; |  | ||||||
| 
 |  | ||||||
|     location / { |     location / { | ||||||
|       root   /usr/share/nginx/html; |       root   /usr/share/nginx/html; | ||||||
|       index  index.html index.htm; |       index  index.html index.htm; | ||||||
|  |       try_files $uri /index.html; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     # serve replay service worker, RWP_BASE_URL set in Dockerfile |     # serve replay service worker, RWP_BASE_URL set in Dockerfile | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user