Score:0

proxypass with SSL kicks back to http ( untill i get to login page ) apache2

bj flag

So here is the virtualhost in apache2

<VirtualHost *:100>

     ServerAdmin [email protected]
     DocumentRoot /var/www/

    Redirect "/" "https://192.168.31.10:500/"


</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost *:500>



    ServerAdmin [email protected]
    ProxyRequests off
    DocumentRoot /var/www
    SSLProxyEngine on
    ProxyPreserveHost On

  SSLEngine on

                SSLCertificateFile      /etc/ssl/certs/apache-selfsigned.crt
                SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key


               <FilesMatch "\.(cgi|shtml|phtml|php)$">
                                SSLOptions +StdEnvVars
                </FilesMatch>
                <Directory /usr/lib/cgi-bin>
                                SSLOptions +StdEnvVars
                </Directory>

  #  ServerName odooproxy.com

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel error

   <Location />
        ProxyPass  http://localhost:8070/
        ProxyPassReverse  http://localhost:8070/
        Order allow,deny
        Allow from all
    </Location>

</VirtualHost>
</IfModule>

The redirection from http port 100 works to port 500 and than the proxy works to port 8070. But than i get the response after it leads me to http://192.168.31.10:500/web

(Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.)

If i add https before the ip, it will get me to the following page: http://192.168.31.10:500/web/login

With again the same error. After adding again https in front of the address and i make the login it will continue to work as the proxy.

Question is how do i keep after every step that it doesn't switch back to http but remains with https address.

Spend a few hours googling, didnt find a response.

Hope someone can help.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.