Koozali.org formerly Contribs.org

set reverse proxy to web service

Offline ReetP

  • *
  • 1,866
Re: set reverse proxy to web service
« Reply #15 on: December 30, 2018, 11:27:23 PM »
Yup. No question.

LOL.. :-)



Quote
So, in a sense, I am doing this as a courtesy.

Yup I get that.


Quote
I will look at lensencrypt and the "40acme" idea. Together with the delta presented by mmccarn, this gives me another option for greater control.

Think letsencrypt example may be the way to go but I'm onlt on a mobile currently so can't check easily.

Quote
About the bug regarding https redirect, what should a server do beyond forcing the redirect? Is the idea that if force ssl is asserted the server should not redirect but refuse?

I can't remember exactly. Pretty sure there is at least one thread here on the subject, plus a bug

But in essence I think yes you are right.

Have a search around.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jáder

  • *
  • 1,057
    • LinuxFacil
Re: set reverse proxy to web service
« Reply #16 on: January 29, 2019, 11:24:10 AM »
I'd like to point you to https://wiki.contribs.org/NodeJS where I just created a new section "Port Redirect for each application" for redirect different ports.
Maybe you can clone my template fragment and just remove the port.
I think you need other lines on that fragment AND you redirect must end with a slash like:

  ProxyPass /ws http://old.server.tld/ws/
  ProxyPassReverse /ws http://old.server.tld/ws/

Try on and let me know. Good luck
...

Offline ReetP

  • *
  • 1,866
Re: set reverse proxy to web service
« Reply #17 on: January 29, 2019, 03:13:00 PM »
I'd like to point you to https://wiki.contribs.org/NodeJS where I just created a new section "Port Redirect for each application" for redirect different ports.
Maybe you can clone my template fragment and just remove the port.
I think you need other lines on that fragment AND you redirect must end with a slash like:

  ProxyPass /ws http://old.server.tld/ws/
  ProxyPassReverse /ws http://old.server.tld/ws/

Try on and let me know. Good luck

That won't work correctly if you read above carefully. Note the words
Quote
WebRTC
and
Quote
mod_proxy_wstunnel

This is about redirecting websockets. No matter what you add in the way of templates it won't work without the mod_proxy_wstunnel module.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation