mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	Merge pull request #883 from baruffaldi/master
Forward scheme and http code added for redirection hosts
This commit is contained in:
		| @@ -18,9 +18,9 @@ server { | ||||
| {% include "_hsts.conf" %} | ||||
|  | ||||
|     {% if preserve_path == 1 or preserve_path == true %} | ||||
|         return 301 $scheme://{{ forward_domain_name }}$request_uri; | ||||
|         return {{ forward_http_code }} {{ forward_scheme }}://{{ forward_domain_name }}$request_uri; | ||||
|     {% else %} | ||||
|         return 301 $scheme://{{ forward_domain_name }}; | ||||
|         return {{ forward_http_code }} {{ forward_scheme }}://{{ forward_domain_name }}; | ||||
|     {% endif %} | ||||
|   } | ||||
| {% endif %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user