因同事測試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
本篇瀏覽人數: 525