title: Reverse Proxy with pgadmin and apache
body: <p>I would like to setup the local pgadmin in server mode behind the reverse proxy. The reverse proxy and the pgadmin could be on the same machine. I tried to set up but it always fails.
  Here is mypgadmin conf:</p>
  
  <pre><code>Listen 8080
  &lt;VirtualHost *:8080&gt;
    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/pgadmin.crt
    SSLCertificateKeyFile /etc/pki/tls/private/pgadmin.key
  
    LoadModule wsgi_module modules/mod_wsgi.so
    LoadModule ssl_module modules/mod_ssl.so
    WSGIDaemonProcess pgadmin processes=1 threads=25
    WSGIScriptAlias /pgadmin /usr/lib/python2.7/site-packages/pgadmin4-web/pgAdmin4.wsgi
  
    &lt;Directory /usr/lib/python2.7/site-packages/pgadmin4-web/&gt;
            WSGIProcessGroup pgadmin
            WSGIApplicationGroup %{GLOBAL}
            &lt;IfModule mod_authz_core.c&gt;
                    # Apache 2.4
                    Require all granted
            &lt;/IfModule&gt;
            &lt;IfModule !mod_authz_core.c&gt;
                    # Apache 2.2
                    Order Deny,Allow
                    Deny from All
                    Allow from 127.0.0.1
                    Allow from ::1
            &lt;/IfModule&gt;
    &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>and my reverse proxy conf</p>
  
  <pre><code>Listen 443
  
  &lt;VirtualHost *:443&gt;
  
          SSLEngine on
      SSLCertificateFile /etc/pki/tls/certs/localhost.crt
      SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
  
  
      ErrorLog /var/log/httpd/reverse_proxy_error.log
      CustomLog /var/log/httpd/reverse_proxy_access.log combined
  
      SSLProxyEngine on
      SSLProxyVerify require
      SSLProxyCheckPeerCN off
      SSLProxyCheckPeerName off
      SSLProxyCACertificateFile "/etc/pki/tls/certs/ca-bundle.crt"
  
      ProxyPreserveHost On    
  
      ProxyPass   /   https://localhost:8080/pgadmin
      ProxyPassReverse    /   https://localhost:8080/pgadmin   
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The httpd start but when I want to test it with </p>
  
  <pre><code>wget --no-check-certificate https://localhost/
  </code></pre>
  
  <p>it give me error 400</p>
  
  <p>but the </p>
  
  <pre><code>wget --no-check-certificate https://localhost:8080/pgadmin
  
  </code></pre>
  
  <p>is working. Where is the problem in my config?</p>