Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Mojolicious, apache reverse proxy

by trwww (Priest)
on Sep 21, 2019 at 05:46 UTC ( #11106464=note: print w/replies, xml ) Need Help??


in reply to Re^2: Mojolicious, apache reverse proxy
in thread Mojolicious, apache reverse proxy

I'll freely admit that the most likely scenario is that I'm just dumb, and like I say its been a long time since I tried it, but re: uri_for and friends I feel like I remember it working but then my chains being busted because they choke on the prefix of the endpoint and/or other weird stuff. And OP has an example of stuff not working in Mojolicious in this very node, no?

So I've ended up with a convention (that at this point I've cargo-culted from myself), using OPs example, like:

ProxyPass /rules http://localhost:3000/rules keepalive=On ProxyPassReverse /rules http://localhost:3000/rules

Replies are listed 'Best First'.
Re^4: Mojolicious, apache reverse proxy
by Your Mother (Bishop) on Sep 21, 2019 at 07:37 UTC

    I didn’t even really read the OP. I don’t have apache running on my Mac at this point—just nginx—and I have little mojo experience and less taste for untangling deployment problems. I did just really read it and have an untested suggestion I think I’ll post.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11106464]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2020-09-22 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I don’t succeed, I …










    Results (129 votes). Check out past polls.

    Notices?