Skip to main content
added 1 character in body
Source Link
Nare
  • 55
  • 1
  • 2
  • 10

I am new to nginx and am for some reason failing at setting up forwarding on nginx. I've looked through several guides and my setup looks to be fine from what i've read. What I am trying to do is forward a request like www.example.com to a different url such as http://example2.com/get/to/information. I'm not doing any port forwarding so everything will be using port 80.

Here is my current config:

 server { listen 80; server_name www.example.comcom; location / { proxy_pass http://example2.com/access/this/information } } 

Additional information - It is not forwarding the information to another nginx server. I just want it to forward to a URL on another server on port 80. What i've tried to do so far is go to www.example.com (which is an A record that points to the IP address of the nginx server) but it continues to just send me to the nginx homepage

Any help would be appreciated!

I am new to nginx and am for some reason failing at setting up forwarding on nginx. I've looked through several guides and my setup looks to be fine from what i've read. What I am trying to do is forward a request like www.example.com to a different url such as http://example2.com/get/to/information. I'm not doing any port forwarding so everything will be using port 80.

Here is my current config:

 server { listen 80; server_name www.example.com location / { proxy_pass http://example2.com/access/this/information } } 

Additional information - It is not forwarding the information to another nginx server. I just want it to forward to a URL on another server on port 80. What i've tried to do so far is go to www.example.com (which is an A record that points to the IP address of the nginx server) but it continues to just send me to the nginx homepage

Any help would be appreciated!

I am new to nginx and am for some reason failing at setting up forwarding on nginx. I've looked through several guides and my setup looks to be fine from what i've read. What I am trying to do is forward a request like www.example.com to a different url such as http://example2.com/get/to/information. I'm not doing any port forwarding so everything will be using port 80.

Here is my current config:

 server { listen 80; server_name www.example.com; location / { proxy_pass http://example2.com/access/this/information } } 

Additional information - It is not forwarding the information to another nginx server. I just want it to forward to a URL on another server on port 80. What i've tried to do so far is go to www.example.com (which is an A record that points to the IP address of the nginx server) but it continues to just send me to the nginx homepage

Any help would be appreciated!

Source Link
Nare
  • 55
  • 1
  • 2
  • 10

NGINX http forwarding

I am new to nginx and am for some reason failing at setting up forwarding on nginx. I've looked through several guides and my setup looks to be fine from what i've read. What I am trying to do is forward a request like www.example.com to a different url such as http://example2.com/get/to/information. I'm not doing any port forwarding so everything will be using port 80.

Here is my current config:

 server { listen 80; server_name www.example.com location / { proxy_pass http://example2.com/access/this/information } } 

Additional information - It is not forwarding the information to another nginx server. I just want it to forward to a URL on another server on port 80. What i've tried to do so far is go to www.example.com (which is an A record that points to the IP address of the nginx server) but it continues to just send me to the nginx homepage

Any help would be appreciated!