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

Onion redirects are inconsistent with the regular tld #265

Closed
towards-a-new-leftypol opened this issue May 26, 2021 · 1 comment
Closed

Onion redirects are inconsistent with the regular tld #265

towards-a-new-leftypol opened this issue May 26, 2021 · 1 comment

Comments

@towards-a-new-leftypol
Copy link
Owner

@towards-a-new-leftypol towards-a-new-leftypol commented May 26, 2021

http://wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion/meta redirects to http://wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion:8081/meta/ which does not work.

Why does nginx redirect us to 8081?

Request Headers

GET /meta HTTP/1.1
Host: wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1

Response Headers

HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Wed, 26 May 2021 05:45:53 GMT
Content-Type: text/html
Content-Length: 162
Location: http://wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion:8081/meta/
Connection: keep-alive

Investigation

Changing the tor virtual host to proxy to the https server results in nginx redirecting to https://leftypol.org no matter what you try (proxy_redirect results in a redirect loop in the best case, redirects to the https tld otherwise)

towards-a-new-leftypol pushed a commit to towards-a-new-leftypol/devops that referenced this issue Jun 17, 2021
@towards-a-new-leftypol
Copy link
Owner Author

@towards-a-new-leftypol towards-a-new-leftypol commented Jun 17, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant