Notes
  • Introduction
  • 應用程式
    • Azure
      • Logic App
      • web app
    • Android
    • Bower
    • Curl
    • DNS
    • Docker
    • Fail2ban
    • Git
    • GitLab-CI
    • GitLab
    • GPG
    • Home Assistant
    • IIS
    • Line Bot
    • Ngrok
    • Npm
    • PowerShell
    • Redis
    • SSH
    • Synology
    • VS Code
    • Web
  • 程式語言
    • C#
      • 遠端偵錯-Remote Debugger
      • 預設值表
      • .Net Core
    • JavaScript
    • PowerShell
  • 作業系統
    • Mac OS
    • Windows 10
    • Raspberry Pi
    • Ubuntu
  • 其他
    • SSL
    • Tools
Powered by GitBook
On this page
Edit on Git
  1. 應用程式

Ngrok

PreviousLine BotNextNpm

Last updated 4 years ago

讓 ngrok 瀏覽只能接受 localhost 連接的網站

重寫標頭 你可以從 看到相關的說明與指令。基本上有兩種可能的用法:

指定 -host-header=rewrite 參數,並在指定 Ports 時直接給與你要的域名,例如:localhost

ngrok http -host-header=rewrite localhost:5780

明確指定 Host 標頭在 -host-header= 參數中

ngrok http -host-header=localhost 5780
Rewriting the Host header