USG210 route a HTTP request to a particular server
Hi All,
Does anyone know if it is possible to route a HTTP request to a particular server?
This is the situation:
I have one static IP address from my provider. This IP address will be used for two or more websites. If someone goes to www.xxxxx.com if needs to be redirected from my public IP address to internal IP address 192.168.0.2. So far no problem, but when someone goes to www.yyyyy.com it needs to be redirected to 192.168.0.3 and www.zzzzz.com to 192.168.0.4. Is this possible using an USG210? I believe this topic was discussed earlier in https://community.zyxel.com/en/discussion/2586/virtual-server-fqdn-based but I didn't quite understand the solution.
I hope someone can help me.0
All Replies
-
AFAIK....
IMVHO You should need a VirtualHost or a Reverse proxy, but I don't know if USGs devices can achieve that.
0 -
It looks just "IDEA"..
In general,The requirement usually realized on device that have GSLB(Global Server Load balance) feature.
DNS service need to manager by yourself first.
0 -
Hello PeterHer as mentioned by mMontana above as a good suggestion , just use a reverse-proxy on your host that handles the WAN(s) and their interfaces for HTTPS/HTTP requests to a mythical 'server02"
FWIW we use NGINX .. there is an abundance {plenty (tonnes!)} of wonderful documentation, and beginner step-by-step guides, odysee video etc there on those interwebs.The Simple Way
- on the USG appliance, set up the usual Security Policies and NAT fwds for requests on 80 | 443 to a set server on your setup (server01).
- then with NGINX ( similar) on server01, (with certs etc etc) , configure the reverse roxy for the https request to be redirected to the preferred 'server02" (physical or VM etc) - again refer to the doc.
This way you can simply have one https/http server that handles for everything ... it can be made very exostic as well .. I'm confident many,many forum members will use this method.
The (bloody) Hard Way
Instead ... another way (the awkward hard way) is to do it all in the USG appliance for settmg host/domain names and requesting non HTTP (80)/ HTTPS (443) to be made on another port then using USG NAT virt and (Sec Pol etc) to route them to a particular server(s) on your LANS s... ( :-1 hard work basically and not esay to use externally)...- such that each https | https reqs for the 'server02) would reuire a specific port.......
- example" https://peterhers.setup.org:65333/blahblah ..... = .
Apache, NGINX and their ilk is the way to go....
HTH
Warwick
Hong Kong0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 144 Nebula Ideas
- 94 Nebula Status and Incidents
- 5.6K Security
- 237 USG FLEX H Series
- 267 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.3K Consumer Product
- 247 Service & License
- 384 News and Release
- 83 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.2K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 71 Security Highlight