Невозможно перенаправить apache http-запрос на nodejs https-сервер через порт 4000 - PullRequest
0 голосов
/ 02 августа 2020

Невозможно получить доступ к приложению, работающему на nodejs с портом 4000, используя https из apache HTTP-запроса. Ниже приведен файл конфигурации моего виртуального хоста.

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    <Directory /var/www/html/assess/>
                Options -Indexes                
    </Directory>    
    Redirect /streaming/ https://example.asses.com/streaming/
    
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined 
</VirtualHost>
<VirtualHost *:443>
    ServerName localhost
    
    SSLEngine On
    SSLProxyEngine on
    SSLCertificateKeyFile /var/www/html/assess/server.key
    SSLCertificateFile /var/www/html/assess/server.cert

    ProxyRequests off
    ProxyPreserveHost on
    ProxyVia Full
    <Proxy *>
        Require all granted
    </Proxy>
    ProxyPass /streaming/ https://localhost:4000/ retry=1 acquire=3000 timeout=900 keepalive=On
    ProxyPassReverse /streaming/ https://localhost:4000/
</VirtualHost>
...