Új hozzászólás Aktív témák

  • vgergo

    aktív tag

    Apache2-es kérdésem lenne. Virtuális gépen futna a webserver-em és a host gépen lenne a fejlesztői környezet.
    Következőt szeretném beállítani:
    client --> host:80 --> Apache --> host:20080 --> NAT --> guest:80
    client --> host:443 --> Apache --> host:20443 --> NAT --> guest:443

    <VirtualHost *:80>
    ServerName localhost
    ProxyPreserveHost On
    ProxyRequests Off
    ProxyPass / http://localhost:20080/
    ProxyPassReverse / http://localhost:20080/
    </VirtualHost>

    Ez teljesen jól működik, de a 443 port-tal nem boldogulok.
    <IfModule mod_ssl.c>
    <VirtualHost *:443>
    ServerName localhost
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    SSLEngine on
    SSLProxyEngine on
    SSLCertificateFile /etc/apache2/ssl/apache.crt
    SSLCertificateKeyFile /etc/apache2/ssl/apache.key
    ProxyPreserveHost On
    ProxyRequests Off
    ProxyPass / https://localhost:20443/
    ProxyPassReverse / https://localhost:20443
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>
    </IfModule>

    Következő hibaüzenetet kapom:
    Proxy Error
    The proxy server could not handle the request GET /.

    Reason: Error during SSL Handshake with remote server

    Apache/2.4.18 (Ubuntu) Server at 127.0.0.1 Port 443

    /var/log/apache2/error.log
    [Sun Oct 29 19:24:40.779220 2017] [proxy:error] [pid 10147] (502)Unknown error 502: [client 127.0.0.1:47298] AH01084: pass request body failed to 127.0.0.1:20443 (localhost)
    [Sun Oct 29 19:24:40.779268 2017] [proxy:error] [pid 10147] [client 127.0.0.1:47298] AH00898: Error during SSL Handshake with remote server returned by /
    [Sun Oct 29 19:24:40.779271 2017] [proxy_http:error] [pid 10147] [client 127.0.0.1:47298] AH01097: pass request body failed to 127.0.0.1:20443 (localhost) from 127.0.0.1 ()

    Mit csinálok rosszul?

Új hozzászólás Aktív témák