Changes between Initial Version and Version 1 of Ticket #786, comment 2
- Timestamp:
- 09/13/15 22:45:04 (9 years ago)
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;1 And for anybody passing by, I have found one or two workarounds for the sinopia+npm usecase that may be helpful; 2 2 3 3 1. Specifying every possibility; … … 28 28 }}} 29 29 30 2. Using variables, requiring resolver and disablingdefault proxy_redirect;30 2. Possibly using PCRE and variables, which requires resolver and disables default proxy_redirect; 31 31 {{{ 32 location ^~ /sinopia( .*)@(.*)/(.*) {32 location ^~ /sinopia(?<a>.*)@(?<b>.*)/(?<c>.*) { 33 33 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/; 36 36 } 37 37 location ^~ /sinopia/ {