How to create it with socat(not working with httpd): doas -uwww socat UNIX-LISTEN:/var/www/run/listen.sock,reuseadseaddr,fork, TCP:internetaddress:portgoeshere
You can check it with curl: curl -v --unix-socket /var/www/run/listen.sock http:/robots.txt This is the fastcgi reverse proxy(pkg_add -iv kcgi | https://kristaps.bsd.lv/kcgi/): kfcgi -d -u www -n 2 -r -p /var/fcgihttp -- /fcgihttp ip port Best of luck ! On March 30, 2019 8:37:42 PM GMT+01:00, Michael Joy <mich...@michaeljoy.eu> wrote: >Thanks so much Flipchan. I'll give it a go. Feel free to send on any >config >examples relating to the fastcgi reverse proxy. All help much >appreciated! > >On Sat, 30 Mar 2019 at 19:34, Flipchan <flipc...@riseup.net> wrote: > >> Reyk if your reading this reverseproxy is a feature request for >httpd. >> >> >> Just set up a bunch off ur django stuff and have relayd redirect to >the >> hosts in a way you seem fit, like create a relay for http in the conf >and >> write a table with the host n ports and forward it to the table, >check out >> hugo's project hiawatha it comes with alot of nice features and it >will get >> rid of the ugly reverse proxy hack cuz it has a native build in >reverse >> proxy, i can send you how i solved the fastcgi reverse proxy its >basicly >> httpd listens on a fastcgi socket that is a reverseproxy, i tried >just >> creating a reverse unix socket but httpd will not work with that so >fastcgi >> socket only it seems like. >> >> Good luck >> >> >> >> On March 30, 2019 4:29:46 PM GMT+01:00, Michael Joy ><mich...@michaeljoy.eu> >> wrote: >>> >>> Sounds perfect. Any tips on how to get started with configuration >and such? >>> >>> On Sat, 30 Mar 2019 at 15:19, Flipchan <flipc...@riseup.net> wrote: >>> >>> You cant do a reverse proxy with httpd however you can do it ugly >with a >>>> fastcgi reverse proxy , httpd fastcgi reverseproxy to relayd and >load >>>> balance to mulitple python listeners i have it working like a >charm :) >>>> >>>> On March 30, 2019 3:22:47 PM GMT+01:00, Michael Joy ><mich...@michaeljoy.eu> >>>> wrote: >>>> >>>>> >>>>> Apologies in advance for the noobish question. >>>>> Does anyone have a tutorial or example of a working configuration >for a >>>>> Django app being served with httpd and relayd? Beating my head >off the wall >>>>> with it at this point. >>>>> >>>>> >>>>> -- >>>> Sent from my Android device with K-9 Mail. Please excuse my >brevity. >>>> >>>> >> -- >> Sent from my Android device with K-9 Mail. Please excuse my brevity. >> -- Sent from my Android device with K-9 Mail. Please excuse my brevity.