Proxies
If you have made it this far, then you are ready to create your Proxies. Here are some examples

any (Catch All)

At an absolute minimum, you should make a Catch All. This is used to redirect any traffic that does not match a route. Redirect to a Help page or to your Home page, either is a good choice
  1. 1.
    Proxies
  2. 2.
    Add
  3. 3.
    Name: any
  4. 4.
    Route template: /{*any}
  5. 5.
    Response override
  6. 6.
    Status code: 302
  7. 7.
    Status message: Temporary Redirect
  8. 8.
    Headers Name: Location
  9. 9.
    Headers Value: <Home or Help page>
  10. 10.
    Create
proxies.json
1
{
2
"$schema": "http://json.schemastore.org/proxies",
3
"proxies": {
4
"any": {
5
"matchCondition": {
6
"route": "/{*any}"
7
},
8
"responseOverrides": {
9
"response.statusCode": "302",
10
"response.statusReason": "Temporary Redirect",
11
"response.headers.Location": "https://osdcloud.com"
12
}
13
}
14
}
15
}
Copied!

twitter

Here's an example of https://go.osdcloud.com/twitter
  1. 1.
    Proxies
  2. 2.
    Add
  3. 3.
    Name: any
  4. 4.
    Route template: /twitter
  5. 5.
    Response override
  6. 6.
    Status code: 302
  7. 7.
    Status message: Temporary Redirect
  8. 8.
    Headers Name: Location
  9. 9.
    Headers Value: <your Twitter profile>
  10. 10.
    Create
proxies.json
1
{
2
"$schema": "http://json.schemastore.org/proxies",
3
"proxies": {
4
"any": {
5
"matchCondition": {
6
"route": "/{*any}"
7
},
8
"responseOverrides": {
9
"response.statusCode": "302",
10
"response.statusReason": "Temporary Redirect",
11
"response.headers.Location": "https://osdcloud.com"
12
}
13
},
14
"twitter": {
15
"matchCondition": {
16
"route": "/twitter"
17
},
18
"responseOverrides": {
19
"response.statusCode": "302",
20
"response.statusReason": "Temporary Redirect",
21
"response.headers.Location": "https://twitter.com/SeguraOSD"
22
}
23
}
24
}
25
}
Copied!

Editing proxies.json

If you are good with editing JSON files directly, you can absolutely do this in the Azure Portal
  1. 1.
    App Files
  2. 2.
    Select proxies.json from the combo box

Sponsor

OSDeploy is sponsored by Recast Software and their Systems Management Tools
Home
Recast Software
Sponsored by Recast Software