ReverseProxy Redirect "HTTPS" howto?

Discussion in 'Installation/Configuration' started by kendel, Jan 25, 2013.

  1. kendel

    kendel New Member

    I got the subdomain ReverseProxy to work on port 80.
    Panel server config:
    Code:
    <VirtualHost *:80>
    DocumentRoot /var/www/ispconfig
    ServerName cp.example.com
    ServerAlias cp.example.com
    <Directory "/var/www/ispconfig">
    allow from all
    Options +Indexes
    </Directory>
    </VirtualHost>
    
    Webserver config
    Code:
    <VirtualHost *:80>
    ServerName cp.example.com
    ServerAlias cp.example.com
    ProxyRequests Off
    ProxyPreserveHost on
    ProxyPass / http://192.168.10.150/
    ProxyPassReverse / http://192.168.10.150/
    </VirtualHost>
    
    This works perfectly fine, I would like to do an "HTTPS" version and made a 5th grader attemp. First I made a copy of the default ispconfig conf file on the panel server and called it scp.example.com and I changed the listen port to 443:
    Panel Server default Ispconfig (made a copy):
    Code:
    NameVirtualHost *:443
    
    <VirtualHost _default_:443>
      ServerAdmin webmaster@localhost
    
      <IfModule mod_fcgid.c>
    DocumentRoot /usr/local/ispconfig/interface/web/
        SuexecUserGroup ispconfig ispconfig
        <Directory /var/www/ispconfig/>
          Options Indexes FollowSymLinks MultiViews +ExecCGI
          AllowOverride AuthConfig Indexes Limit Options FileInfo
          AddHandler fcgid-script .php
          FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
          Order allow,deny
          Allow from all
        </Directory>
    ...........................................................
    
    Ok theres alot more in that file that what I just showed, but lets cut it short....
    Now I created the Reverse Proxy on the webserver... (assuming default port for "HTTPS" is 443
    The Web server:
    Code:
    <VirtualHost *:443>
    RequestHeader set X-Forwarded-Proto "https"
        ProxyPreserveHost On
    ServerName scp.example.com
    ProxyRequests Off
    ProxyPreserveHost on
    ProxyPass / http://192.168.10.150:443/
    ProxyPassReverse / http://192.168.10.150:443/
    </VirtualHost>
    

    Doesn't work at all...What am I missing?
     
    Last edited: Jan 26, 2013
  2. kendel

    kendel New Member

    Still seeking a solution for "https://" if anyone have any ideas.
     

Share This Page