I configured Nginx as a reverse proxy on my server for a site, say example.com
I want the client to access my site using an IP address, something like http://192.0.2.67
The problem is that there is a redirection on the example.com site setting HTTP to redirect to HTTPS. (This example.com using Cloudflare)
When the client accesses my site from http://192.0.2.67
they are redirected to https://example.com
How do I disable HTTP redirect to HTTPS on my Nginx reverse proxy?
My code is like below :
server {
listen 80;
location / {
proxy_pass http://example.com;
}
}