Skip to content

Commit 3c9aca5

Browse files
authored
Fix regexps
1 parent 1d25f81 commit 3c9aca5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ It has the following features:
1313
```
1414
hosts:
1515
http://example.com:
16-
- ^(/*)$: http://127.0.0.1:3000$1
16+
- ^(/.*)$: http://127.0.0.1:3000$1
1717
```
1818

1919
This can be done since the name resolution is done in devproxy, which is configured to map any request for http://example.com to http://127.0.0.1:3000.
@@ -25,9 +25,9 @@ It has the following features:
2525
```
2626
hosts:
2727
http://example.com:
28-
- ^(/*)$: http://127.0.0.1:3000$1
28+
- ^(/.*)$: http://127.0.0.1:3000$1
2929
https://example.com:
30-
- ^(/*)$: http://127.0.0.1:3000$1
30+
- ^(/.*)$: http://127.0.0.1:3000$1
3131
```
3232

3333
Even though you don't have a valid certificate prepared for `example.com`, devproxy automatically generates it on the fly. However, it is necessary to set up the private PKI for issuing bogus server certificates and let your browser trust the PKI's root CA certificate. **DO IT ON YOUR OWN RISK.**
@@ -50,7 +50,7 @@ It has the following features:
5050
```
5151
hosts:
5252
http://example.com:
53-
- ^(/*)$: http://127.0.0.1:3000$1
53+
- ^(/.*)$: http://127.0.0.1:3000$1
5454
headers:
5555
X-Forwarded-Proto: https
5656
Removed-Header: null

0 commit comments

Comments
 (0)