Reverse Proxy

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Reverse Proxy

Postby mutinyonthelabounty » Jul 08 15 1:39 pm

I am setting up a home project with three dedicated servers with one public IP. Each server will host a variety of services (HTTP, Mail, DNS,....). I also have three different domain names (example.com, example.net, & example.us). I have all servers at this time running a website, but have to put the port number at the end.

I was wondering if reverse proxy is the way to go? Can I set up the reverse proxy to direct people from the internet to the correct server? If this can be accomplished, can I do it with the free license?

http://www.example.com to 192.168.x.1 (example.com)
http://www.example.net to 192.168.x.2 (example.net)
http://www.example.us to 192.168.x.3 (example.us)

Thank you in advance
mutinyonthelabounty
 
Posts: 2
Joined: Jul 08 15 1:05 pm

Re: Reverse Proxy

Postby adrien » Jul 09 15 11:25 pm

Hi

reverse proxy is a good option for this, but you'll hit a couple snags with the free license.

Firstly, to do multiple back-end servers for reverse proxy normally requires an enterprise license - that is what allows you to set up multiple "sites". However you can do it in script with the free version, but you'd need to set up a flow-chart policy to do it. E.g. use a "map lookup" item

Map lookup example.png
Map lookup example.png (11.99 KiB) Viewed 4353 times


Attach this to the "ServerRequest" event for the www proxy.

However the bigger issue you'll hit is the user count limit, only 3 people will be able to hit any site at any one time.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Reverse Proxy

Postby mutinyonthelabounty » Jul 28 15 8:22 am

Adrien,

Thank you for the example. I have decided to purchase a enterprise license (6 users). It is pretty straight forward on settting on the reverse proxy and at this time I only have 2-3 people that will access the websites.

I do have another question. Is there an easy way to map sub-domains in the reverse proxy service? Or do I have to add each of them under Service>>Web Server>>Hosts?

Example: www.example.com

subdomains: file.example.com
cloud.example.com
so on so forth
mutinyonthelabounty
 
Posts: 2
Joined: Jul 08 15 1:05 pm

Re: Reverse Proxy

Postby adrien » Jul 29 15 10:12 pm

Hi

the matching on host headers (in the hosts tab of a "site" under the Web server tab in the WWW proxy) does not support pattern matching,

So you do need to add all the hostnames you want to use. You can add multiple matching host headers per site though, so you don't need to create a new reverse proxy site for each if all the sites are going to the same back-end server for example.

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: No registered users and 14 guests

cron