Welcome! Log In Create A New Profile

Advanced

How to redirect HTTP to different server IP and HTTPS to localhost

Posted by mathewfer 
How to redirect HTTP to different server IP and HTTPS to localhost
March 16, 2019 06:59AM
Hi Team,

I am new to Nginx and using it with iRedmail. I have port forwarded - 80 and 433 to this Nginx server and I had to do both onto this server IP.

I want to forward any traffic that comes to only www - like WWW.mydomain.com to another server IP on the same LAN.

How can I forward/rewrite in Nginx configuration to achieve this?

Awaiting your reply.

Mathew
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 265
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready