-
Notifications
You must be signed in to change notification settings - Fork 181
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
Redirecting when using https #93
Comments
This is my nginx configuration:
|
It seems that prerender is requesting the server using http.
Nginx redirects this url to https url. |
Wherever you are sending the request to Prerender.io, you'll want to set the protocol to https. It sounds like you might be doing SSL termination in front of your server so that's why you're sending Prerender.io a request to an http URL. |
OK @thoop, the problem was the proxy_pass to http://127.0.0.1:4000. I solved changing the node server running on 4000 to use https. Thanks! |
When i send a request to https://www.closic.com/pt?_escaped_fragment_= the server is redirecting to "/pt".
Why this is happening? The log in closic-web shows that /pt?escaped_fragment= are redirecting but i'm not finding the code that redirects. Can be a prerender-node middleware bug?
When i run locally without https its working fine.
I added www.closic.com in /etc/hosts and configured nginx locally too.
(http://www.closic.com/pt?_escaped_fragment_=)
The text was updated successfully, but these errors were encountered: