[libre-riscv-dev] [Bug 181] test and install public-inbox

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Sat Mar 21 04:18:07 GMT 2020


http://bugs.libre-riscv.org/show_bug.cgi?id=181

--- Comment #57 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to vklr at vkten.in from comment #55)
> (In reply to Luke Kenneth Casson Leighton from comment #49)
> > (In reply to vklr at vkten.in from comment #48)
> > 
> > > > ok just for a laugh i'm going to run public-inbox-httpd, which is
> > > > now set up on http://inbox.libre-riscv.org/libre-riscv-dev
> > > So you are using subdomains by adding A records in DNS.
> > 
> > yes.  i found that proxy redirect would send to the wrong
> > path.  i don't know why.
> > 
> > > You can also use nginx reverse proxy so that
> > > http://libre-riscv.org:8080/pi/libre-riscv-dev becomes some path as
> > > http://libre-riscv.org:80/pi/libre-riscv-dev
> > 
> > i had to use this:
> > 
> >         location /{
> >                 access_log /var/log/nginx/public-inbox-httpd_access.log;
> >                 error_log /var/log/nginx/public-inbox-httpd_error.log;
> >                 proxy_set_header    HOST $host;
> >                 proxy_set_header    X-Real-IP $remote_addr;
> >                 proxy_set_header    X-Forwarded-Proto $scheme;
> >                 proxy_pass         http://127.0.0.1:8080$request_uri;
> >                 proxy_buffering off;
> >         }
> > 
> > efforts to change it to work as location /publicinbox met with...
> > resistance :)
> 
> please try this:
> 
>        location /publicinbox/ {
>                  access_log /var/log/nginx/public-inbox-httpd_access.log;
>                  error_log /var/log/nginx/public-inbox-httpd_error.log;
>                  proxy_pass         https://127.0.0.1:8080/;
>                  proxy_buffering off;
>          }

this fails not in nginx but in public-inbox-httpd.  the URL is passed in full
including the word "publicinbox" and it cannot cope, it starts looking for a
list named "publicinbox".

a rewrite rule or double proxypass is needed.

this is why i went with the domain name

> Also please install libplack-middleware-reverseproxy-perl
> It's needed with nginx.

i have that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-riscv-dev mailing list