Proxmox VE 5.2-1 through Apache 2.4.25 proxy

PT400C

New Member
May 30, 2018
1
0
1
18
Hey guys,

I used this guide to build up a proxy with Apache 2.4.25 to Proxmox VE:
Proxying Proxmox 4 with Apache from wonderproxy

The problem: NoVNC does not work and all the VM stats aren't displayed.

Does a newer guide exist for 5+ or does anyone know what I have to change concerning the guide?

Thanks in advance

PT400C
 
Nov 17, 2017
4
0
1
48
Hi,
this is my config for a apache 2.4 name based reverse proxy:

Code:
<VirtualHost *:443>
    ServerName <Extern.Sitename.de>

    ErrorLog  ${APACHE_LOG_DIR}/Proxy_<Extern.Sitename.de>_error.log
    CustomLog ${APACHE_LOG_DIR}/Proxy_<Extern.Sitename.de>_access.log combined

    UseCanonicalPhysicalPort Off
    UseCanonicalName         Off
    DocumentRoot             /var/www/html/

    SSLEngine on
    SSLCertificateFile    /etc/letsencrypt/live/<Extern.Sitename.de>/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/<Extern.Sitename.de>/privkey.pem

    ProxyRequests Off
    ProxyPreserveHost On

    #SSL Connect
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off

    # HSTS (mod_headers is required) (15768000 seconds = 6 months)
    #Header always set Strict-Transport-Security "max-age=15768000"

    # Encoded slashes need to be allowed
    AllowEncodedSlashes     NoDecode

    RewriteEngine on
    RewriteCond %{HTTP:Connection} Upgrade [NC]
    RewriteCond %{HTTP:Upgrade} websocket [NC]
    RewriteRule /(.*) wss://127.0.0.1:8006/$1  [P,L]

    SSLProxyEngine   on
    ProxyRequests    off

    #block Proxy for letsencrypt verification!
    ProxyPass        /.wellknown !
   
    ProxyPass        / https://127.0.0.1:8006/ flushpackets=On connectiontimeout=300 timeout=300
    ProxyPassReverse / https://127.0.0.1:8006/
    ProxyTimeout     600

</VirtualHost>
Perhaps it will help someone, because I didn't found a working example that uses apache2.

best regards
Willi
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!