Skip to content

Comments

fixed bug with redirect from swagger/ to index.html#105

Open
padremortius wants to merge 1 commit intoswaggo:masterfrom
padremortius:pm/proxybug
Open

fixed bug with redirect from swagger/ to index.html#105
padremortius wants to merge 1 commit intoswaggo:masterfrom
padremortius:pm/proxybug

Conversation

@padremortius
Copy link
Contributor

Fixed bug with redirect from swagger/ to index.html through proxy with changed prefix

I have:

Url to swagger through proxy http://localhost:80/containers/service1/swagger/

A call to this URL will be redirected to http://localhost:80/service1/swagger/index.html. We have lost part of the URL

nginx config:

       location /containers/ {
            proxy_pass 		http://localhost:8080/;
            proxy_set_header	X-Real-IP           	$remote_addr;
	    proxy_set_header	X-Forwarded-For     	$proxy_add_x_forwarded_for;
	    proxy_set_header	X-Forwarded-Proto   	http;
	    proxy_set_header	X-Forwarded-Prefix	/containers/;
	    proxy_set_header	X-Forwarded-Port    	80;
	    proxy_set_header	X-Forwarded-Host    	$host;
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant