Score:1

Nginx reverse proxy stop domain from changing to local IP

in flag
Jaa

I'm not familiar with any of this proxy stuff.

nginx config

I can't seem to find a solution to this issue. Right now when I type ex.domain.com it redirects to the IP address 192.168.1.202. How do I get it to visit that address but keep ex.domain.com.

I have port forwarding setup for nginx and if i remove "proxy_pass" it shows the nginx page with the domain url. which is what I want.

For server_name localhost doesn't seem to make a difference.

I've tried adding

proxy_redirect
proxy_set_header

For reference this is what I did step by step for initial setup Youtube Video

John Hanley avatar
cn flag
Unless you have configured something, Nginx does not redirect to an IP address. Most likely your backend configuration is wrong. Your question does not show the redirect (use the CLI **curl -I example.com**), the Nginx configuration, or other details about your backed site.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.