Reverse Proxy

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Reverse Proxy

Postby radu990 » 27. January 2017 09:32

Hello,

I would like to setup a reverse proxy that would reverse as well and the absolute links within the page. My current Configuration is

Code: Select all
<IfModule mod_ssl.c>
        <VirtualHost *:443>
                ServerAdmin webmaster@localhost

                DocumentRoot /var/www/html

                 ErrorLog ${APACHE_LOG_DIR}/error.log
                CustomLog ${APACHE_LOG_DIR}/access.log combined
#               CustomLog "|/usr/bin/tee -a /var/log/apache2/access.log | /usr/bin/logger -t apache -p local1.info" combined

                #   SSL Engine Switch:
                #   Enable/Disable SSL for this virtual host.
                SSLEngine on
                SSLProxyEngine On
                ProxyPreserveHost On

ServerName pge-data3.pp.com
        ServerAlias pge-data3.com
        ProxyRequests Off
        ProxyPreserveHost On

ProxyPass / https://pge-data2.pp.com
ProxyPassReverse / https://pge-data2.pp.com

SSLCertificateFile             path_to_certificate
SSLCertificateKeyFile       path_to_certificate
SSLCertificateChainFile    path_to_certificate
...

</VirtualHost>
</IfModule>


Everything works fine, except the thing that absolute url's are not redirected. If I use relative links, everything works well and proxy reverse them. On absolute it doesn't. Please see the screenshots below. Any chance to make them to reverse as well?
Thanks in advance

http://fs5.directupload.net/images/170127/3ifhb869.png
http://fs5.directupload.net/images/170127/i3nlrojd.png
radu990
 
Posts: 1
Joined: 27. January 2017 08:56
XAMPP version: 2.4
Operating System: Ubuntu

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 204 guests