Ubunt 22.04 apache Reverse Proxy https to http 設定

因同事測試LineBot ,nodejs 預設是3000 port  主要是因為在linebot 後台
驗證網址需要https  。簡單說Linebot 後連線後,會就直接跳轉至 nodejs 3000 port 服務

紀錄,修改設定如下

<VirtualHost *:443>
ServerName myserver
SSLEngine On
SSLCertificateFile /path/to/file
SSLCertificateKeyFile /path/to/file
SSLCertificateChainFile /path/to/file
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
    AddDefaultCharset Off
    Order deny,allow
    Allow from all
</Proxy>
ProxyPass / http://myserver:3000/
ProxyPassReverse / http://myserver:3000/

ErrorLog logs/myserver-error_log
CustomLog logs/myserver-access_log common
</VirtualHost>

參考資訊:

https://blog.davidou.org/archives/1334



本篇瀏覽人數: 404
分類: MIS文章-Linux篇, ubuntu。這篇內容的永久連結

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *