You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-9Lines changed: 15 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@
6
6
7
7
The one-liner proxy middleware for [connect](https://github.com/senchalabs/connect), [express](https://github.com/strongloop/express) and [browser-sync](https://github.com/BrowserSync/browser-sync)
8
8
9
-
## Install
9
+
###Install
10
10
```javascript
11
11
$ npm install --save-dev http-proxy-middleware
12
12
```
13
13
14
-
## Core concept
14
+
###Core concept
15
15
Configure the proxy middleware.
16
16
```javascript
17
17
var proxyMiddleware =require('http-proxy-middleware');
@@ -32,7 +32,7 @@ var proxy = proxyMiddleware('/api', {target: 'http://www.example.org'});
32
32
33
33
34
34
35
-
## Example
35
+
###Example
36
36
A simple example with express server.
37
37
```javascript
38
38
// include dependencies
@@ -59,14 +59,14 @@ See [more examples](#more-examples).
59
59
60
60
**Tip:** For [name-based virtual hosted sites](http://en.wikipedia.org/wiki/Virtual_hosting#Name-based), you'll need to use the option `changeOrigin` and set it to `true`.
61
61
62
-
## Compatible servers:
62
+
###Compatible servers:
63
63
http-proxy-middleware is compatible with the following servers:
To run and view the [proxy examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples), clone the http-proxy-middleware repo and install the dependencies:
0 commit comments