4

I am looking for (free) very simple reverse proxy solution (application) which supports SSL.

I tried Charles, it works great, but it is too complex and it's not free.

I have a little service which listen only on localhost:4952 and checks source hostname. With reverse proxy I am able to redirect request to the 4952 port:

https://92.168.1.10:1988 (SSL) -> redirect https://localhost:4952 (SSL)

user66638
  • 377
  • 2
  • 6
  • 21

2 Answers2

5

Nginx supports Windows and is free both in price and license (2-clause BSD-style). It supports encrypted and unencrypted reverse proxy for HTTP, mail (SMTP/POP/IMAP), and even for TCP. The Windows support isn't complete, known issues including the fact that only one worker can be used and the like, but it should still work.

More information can be found here:

http://nginx.org/en/docs/windows.html

persona15
  • 299
  • 2
  • 9
  • Hi thanks for the reply. I am playing with nginx, so far without lucky: server { listen 1988 ssl; server_name localhost; location / { proxy_pass https://localhost:41952; } – user66638 Oct 09 '15 at 00:44
  • 1
    Thanks. I have wasted a lot of time on "simple" proxy servers bugs and poor config for development. It never occurred to me that nginx could run on windows! – AgDude Aug 12 '16 at 15:28
  • 2
    Nginx for windows is unsuitable for production as it supports only one worker process. From the docs "high performance and scalability should not be expected. Due to this and some other known issues version of nginx for Windows is considered to be a beta version." http://nginx.org/en/docs/windows.html – Marc Sep 03 '19 at 13:14
3

Another alternative is stunnel. It works on Windows. Based on this Windows sample. Your config may look something like:

; Debugging stuff (may be useful for troubleshooting)
debug = info
output = stunnel.log

[myservice]
accept  = 3000
connect = 4952
cert = myservicecert.pem
hookenz
  • 14,132
  • 22
  • 86
  • 142