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

301 Moved Permanently #5

Closed
gcpmusic opened this issue Aug 30, 2020 · 4 comments
Closed

301 Moved Permanently #5

gcpmusic opened this issue Aug 30, 2020 · 4 comments

Comments

@gcpmusic
Copy link

gcpmusic commented Aug 30, 2020

Today I start to have this issue:

gCs-MacBook-Pro:~ gc$ curl ip.zxq.co/8.8.8.8

<title>301 Moved Permanently</title>

301 Moved Permanently


nginx

Was working fine for months. Any help?
Thank you in advance.

@thehowl
Copy link
Owner

thehowl commented Sep 1, 2020

The service was moved to a new system where nginx was configured to redirect all http requests to https. I've made an exception, for backwards compatibility, to allow http access on ip.zxq.co - although you should use https in your application and should also follow redirects as a general advice. Thank you for the issue nonetheless!

@thehowl thehowl closed this as completed Sep 1, 2020
@gcpmusic
Copy link
Author

gcpmusic commented Sep 1, 2020

Many thanks for the reply Morgan. However, your suggestion works fine in a browser but not within a script using curl. Any suggestion to let it work in the terminal using curl command?

Thanks in advance.

@thehowl
Copy link
Owner

thehowl commented Sep 1, 2020

it's as simple as curl https://ip.zxq.co for HTTPS - and curl -L ip.zxq.co (http) to follow redirects :)

@gcpmusic
Copy link
Author

gcpmusic commented Sep 1, 2020

Thanks Morgan
when I tried https://ip.zxq.co I didnt realise I had a network disservice. I am sorry. Works great now.
All the best.

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

No branches or pull requests

2 participants