如何為連接埠 8080 新增 ssl?在 apache2 ubuntu 20.04 中

如何為連接埠 8080 新增 ssl?在 apache2 ubuntu 20.04 中

我試圖將我的 ssl 憑證新增至連接埠 8080,但是當我透過 https 輸入時,它告訴我此錯誤:ERR_SSL_PROTOCOL_ERROR

這是我的 subdomain_maindomain.onlin.conf:

<VirtualHost *:80>
  ServerName panel.example.online
  ServerAlias www.exmaple.online
</VirtualHost>

<VirtualHost *:443>
    ServerAdmin [email protected]
    ServerName panel.example.online
    ServerAlias www.panel.example.online
    DocumentRoot /var/www/pufferpanel
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    SSLEngine on
    SSLCertificateFile /etc/ssl/example.online/example.online.crt
    SSLCertificateKeyFile /etc/ssl/example.online/example.key
    SSLCertificateChainFile /etc/ssl/example.online/example.online.ca-bundle
</VirtualHost>

答案1

改變線路

<VirtualHost *:443>

<VirtualHost *:443 *:8080>

相關內容