used error_pages snippet
This commit is contained in:
		
							parent
							
								
									4923743837
								
							
						
					
					
						commit
						00b5b4d0c1
					
				| @ -14,15 +14,5 @@ server { | ||||
|     return 301 https://$host$request_uri; | ||||
| 
 | ||||
|     # error pages | ||||
|     error_page 404 /404.html; | ||||
|     location = /404.html { | ||||
|         root /usr/share/nginx/html; | ||||
|         internal; | ||||
|     } | ||||
| 
 | ||||
|     error_page 500 502 503 504 /50x.html; | ||||
|     location = /50x.html { | ||||
|         root /usr/share/nginx/html; | ||||
|         internal; | ||||
|     } | ||||
|     include /etc/nginx/snippets/error_pages.conf; | ||||
| } | ||||
|  | ||||
| @ -28,15 +28,5 @@ server { | ||||
|     } | ||||
| 
 | ||||
|     # error pages | ||||
|     error_page 404 /404.html; | ||||
|     location = /404.html { | ||||
|         root /usr/share/nginx/html; | ||||
|         internal; | ||||
|     } | ||||
| 
 | ||||
|     error_page 500 502 503 504 /50x.html; | ||||
|     location = /50x.html { | ||||
|         root /usr/share/nginx/html; | ||||
|         internal; | ||||
|     } | ||||
|     include /etc/nginx/snippets/error_pages.conf; | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user