Changes between Initial Version and Version 1 of Ticket #786, comment 2


Ignore:
Timestamp:
09/13/15 22:45:04 (4 years ago)
Author:
aliquid@…

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #786, comment 2

    initial v1  
    1 And for anybody passing by, I have found two workarounds for the sinopia+npm usecase that may be helpful;
     1And for anybody passing by, I have found one or two workarounds for the sinopia+npm usecase that may be helpful;
    22
    331. Specifying every possibility;
     
    2828}}}
    2929
    30 2. Using variables, requiring resolver and disabling default proxy_redirect;
     302. Possibly using PCRE and variables, which requires resolver and disables default proxy_redirect;
    3131{{{
    32 location ^~ /sinopia(.*)@(.*)/(.*) {
     32location ^~ /sinopia(?<a>.*)@(?<b>.*)/(?<c>.*) {
    3333  resolver 192.168.3.1;
    34   proxy_pass http://sinopia.local:4873$1@$2%2F$3;
    35   proxy_redirect http://sinopia.local:4873/ /sinopia/
     34  proxy_pass http://sinopia.local:4873$a@$b%2F$c;
     35  proxy_redirect http://sinopia.local:4873/ /sinopia/;
    3636}
    3737location ^~ /sinopia/ {