Reverse proxy docker

Discussion in 'ISPConfig 3 Priority Support' started by Stelios, Nov 16, 2024.

  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,
    I'm trying to make work from a url like https://subdomain.mydomain.com a docker image without much success.

    Under the Apache options I got the following:

    Code:
    ProxyPreserveHost On
    ProxyPass /.well-known/acme/ !
    ProxyPass / http://my-public-ip:9000/
    ProxyPassReverse / http://my-public-ip:9000/
    
        Header always set Access-Control-Allow-Origin "https://subdomain.mydomain.com"
        Header always set Access-Control-Max-Age "1000"
        Header always set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding"
        Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
    
        RewriteEngine On
        RewriteCond %{REQUEST_METHOD} OPTIONS
        RewriteRule ^(.*)$ $1 [R=200,L]
    
    SSLUseStapling off
    If I call the url subdomain.mydomain.com without https and with the port 9000 it works fine. Without the port it just shows the default ispconfig page. With https and 9000 port at the end it doesn't work at all, it throws Error code: SSL_ERROR_RX_RECORD_TOO_LONG

    Any help is very much appreciated.
     
  2. Stelios

    Stelios Active Member HowtoForge Supporter

    Ignore my post, it is working fine, I had a typo in the subdomain....
     
    till likes this.

Share This Page