Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

padremortius
Copy link

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.

None yet

1 participant