LogoLogo
TwitterLinkedInGitHubPowerShell Gallery
  • About
  • Events
  • Blog
    • 2022
      • 🆕OSD January Update
      • 🆕PSCloudScript Basics
    • 2021
      • Start-OOBEDeploy
      • OSDCloud
      • PowerShell Gallery in WinPE
      • BitLocker KeyProtectors
      • WindowsCapability -and WindowsPackage
      • Scheduled Tasks
        • Building a Task
        • Task Permissions
        • Task Trigger
        • Action a PowerShell File
        • Action a PS Encoded Script
        • Conclusion
          • Windows Activation and Edition Change
          • REG.exe and Multiple Actions
    • 2019
      • 2019-02
        • Offline Servicing vs Reference Image
      • 2019-04
        • Windows 10 Upgrade MultiLang (Uno)
      • 2019-06
        • Offline Servicing Windows 10 with CU for .NET 4.8
        • OSDBuilder and .NET CU KB4480056
      • 2019-09
        • Black Screen During Windows 10 Setup
      • 2019-11
        • I Hate OSDBuilder
    • 2018
      • WinPE 10 1809 WPF DLL Fix
      • Microsoft Update Releases
      • Create WinPE.wim from Boot.wim or WinRE.wim
      • Windows Setup: FAT32 USB with +4GB Install.wim
      • Windows 10 from ESD
      • Windows 10 1809 Appx Issues
      • Mount-WindowsImage -Optimize
  • Guides
    • Autopilot App Registration
    • PSCloudScript
      • PS Cmdlets
      • GitHub Gist
      • GitHub Git Repo
      • Content-Type | Azure Static Web App
      • Command Shortening
      • Azure Key Vault Secret
      • OSD PowerShell Module
      • PSCloudScript Examples
        • Autopilot
        • AutopilotOOBE
        • OSDCloud Live
        • WinPE PowerShell Gallery
        • OSDCloud WinPE and OOBE
    • go OSDCloud
      • Azure Function
      • Custom Domain
      • SSL Binding
      • Proxies
  • PowerShell
    • OSD
    • OSDCloud
    • OSDBuilder (Offline Servicing)
    • OSDSUS (Update Catalogs)
    • OSDUpdate (MS Updates)
    • OSDDrivers (Compact Drivers)
    • PShot
      • Release Notes
      • Usage
        • -Directory
        • $AutoPath
        • -Prefix
        • -Count
        • -Delay
        • -Clipboard
        • -Primary
        • The Object
      • Technical
        • Why a Module?
        • Resolution, Scale and DPI
Powered by GitBook
On this page
  • any (Catch All)
  • twitter
  • Editing proxies.json
  • Sponsor
  1. Guides
  2. go OSDCloud

Proxies

PreviousSSL BindingNextPShot

Last updated 3 years ago

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. Proxies

  2. Add

  3. Name: any

  4. Route template: /{*any}

  5. Response override

  6. Status code: 302

  7. Status message: Temporary Redirect

  8. Headers Name: Location

  9. Headers Value: <Home or Help page>

  10. Create

proxies.json
{
  "$schema": "http://json.schemastore.org/proxies",
  "proxies": {
    "any": {
      "matchCondition": {
        "route": "/{*any}"
      },
      "responseOverrides": {
        "response.statusCode": "302",
        "response.statusReason": "Temporary Redirect",
        "response.headers.Location": "https://osdcloud.com"
      }
    }
  }
}

twitter

  1. Proxies

  2. Add

  3. Name: any

  4. Route template: /twitter

  5. Response override

  6. Status code: 302

  7. Status message: Temporary Redirect

  8. Headers Name: Location

  9. Headers Value: <your Twitter profile>

  10. Create

proxies.json
{
  "$schema": "http://json.schemastore.org/proxies",
  "proxies": {
    "any": {
      "matchCondition": {
        "route": "/{*any}"
      },
      "responseOverrides": {
        "response.statusCode": "302",
        "response.statusReason": "Temporary Redirect",
        "response.headers.Location": "https://osdcloud.com"
      }
    },
    "twitter": {
      "matchCondition": {
        "route": "/twitter"
      },
      "responseOverrides": {
        "response.statusCode": "302",
        "response.statusReason": "Temporary Redirect",
        "response.headers.Location": "https://twitter.com/SeguraOSD"
      }
    }
  }
}

Editing proxies.json

If you are good with editing JSON files directly, you can absolutely do this in the Azure Portal

  1. App Files

  2. Select proxies.json from the combo box

Sponsor

Here's an example of

OSDeploy is sponsored by and their Systems Management Tools

https://go.osdcloud.com/twitter
Recast Software
HomeRecast Software
Sponsored by Recast Software
Logo