> For the complete documentation index, see [llms.txt](https://httpstubhq.gitbook.io/httpstub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://httpstubhq.gitbook.io/httpstub/reverse-proxy/configuration.md).

# Configuration

1. Add information about destination in `config` file

```
#data/app.config.yaml
version: v1.3
type: Config
body:
  proxy:
    - name: local
      url: http://localhost:9080
```

2. Create proxy manifest

```
#data/proxy-example.yaml
version: v1.2
type: Proxy
rules:
  - request:                    
      path: /api/greetings/**
    proxy-name: local           
```

#### Explanation

With these settings, request `GET /api/greetings` to httpstub will redirect traffic to [http://localhost:9080](http://localhost:9080/) under hood. Since path-matching spring is used here, all requests that start with `/api/greetings` will be redirected to the upstream:

* /api/greetings/details
* /api/greetings/details/reports
* /api/greetings/details/reports/view/1

All them will be redirected to [http://localhost:9080](http://localhost:9080/)
