-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy HTTPS requests to Web-server #14
Comments
Current sstp-server actually do not implement HTTP stack, while I prefer let the web server proxing SSTP traffic to SSTP server. However, I tried it with nginx, For now, you may bind SSTP on other port while HTTPS still on TCP 443. |
I have absolute success with nginx infront of sstpd will cleanup configuration and post it here |
start sstpd without ssl
place it at the end of nginx.conf (you will need mod_stream and mod_ssl_stream enabled and nginx 1.9)
then based on certificate/server name you can proxy your http(s) requests back or something like that :) |
Yes, it's same as sniproxy + nginx solution, just replace the sniproxy with new features on ngixn. To conexist with web service, you need bind nginx's HTTPS service on a non-443 port, then using ngx_stream_ssl_preread_module to proxy HTTPS to HTTPS, SSTP to SSTP, base on their server names. (And enable PROXY protocol on nginx's stream and http sides, may also on SSTP server, in future :) I did this to running HTTP + ocserv on a server. |
in stream module nginx cant parse url or http method or server name. so not posible to run with site. |
ngx_stream_ssl_preread_module can parse server name from TLS. |
You need 1, make your blog bind to a private addr like
2, make your sstpd bind to another private addr. (Note: You can always use 127.x.y.z without really bind it to any interface) simply start it with 3, edit your
4, restart your |
Is it possible to do the same but with |
For serving http and sstp it will be great feature.
The text was updated successfully, but these errors were encountered: