Reverse proxy forwarding to a 2end Server

ucs-4
apache

#1

Hi all,

a short question.
In our network is a 2end Webserver active and we want forward the Incoming requests for this server over the univention apache reverse proxy module.
Unfortunately this is not working, when we call the url photo.domain.de which is linked to http://192.168.1.2/photo always the configuration page of the UCS Server is visible.

We made something similar whit the kopano webapp and this works perfect.
At the moment I cant see what’s wrong.

Here the configutration file in apache2/sites-enabled
/etc/apache2/sites-enabled/photostation.conf

<IfModule mod_ssl.c>

<VirtualHost *:443>
        ServerName photo.domain.de
        SSLEngine on
        SSLProxyEngine on
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLCertificateFile /etc/univention/letsencrypt/signed.crt
        SSLCertificateKeyFile /etc/univention/letsencrypt/domain.key
        SSLCACertificateFile /etc/univention/letsencrypt/chained.pem

        #SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

        ### To enable special log format for HTTPS-access
        # LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %p" combinedssl
        # CustomLog /var/log/apache2/access.log combinedssl     ## with port number

        ProxyPass / http://192.168.1.2/photo
        ProxyPassReverse / http://192.168.1.2/photo

</VirtualHost>
</IfModule>

as a example here is a rewrite conf file for the kopano webapp:

<IfModule mod_ssl.c>

<VirtualHost *:443>
        ServerName webmail.domain.de
        SSLEngine on
        SSLProxyEngine on
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLCertificateFile /etc/univention/letsencrypt/signed.crt
        SSLCertificateKeyFile /etc/univention/letsencrypt/domain.key
        SSLCACertificateFile /etc/univention/letsencrypt/chained.pem

        #SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

        ### To enable special log format for HTTPS-access
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %p" combinedssl
        CustomLog /var/log/apache2/webmail-access.log combinedssl

        RedirectMatch ^/$ https://webmail.domain.de/webapp
</VirtualHost>
</IfModule>

Best Theo


UCS Reverse Proxy SSL
#3

now it’s working

I made this hope it’s ok

<VirtualHost *:80>
        ServerName photo.domain.de

        Redirect / https://photo.domain.de/photo/
</VirtualHost>

<VirtualHost *:443>
        ServerName photo.domain.de
        SSLEngine on
        SSLProxyEngine on
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLCertificateFile /etc/univention/letsencrypt/signed.crt
        SSLCertificateKeyFile /etc/univention/letsencrypt/domain.key
        SSLCACertificateFile /etc/univention/letsencrypt/chained.pem

        #SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

        ### To enable special log format for HTTPS-access
        # LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %p" combinedssl
        # CustomLog /var/log/apache2/access.log combinedssl     ## with port number

        RedirectMatch ^/$ /photo/

        ProxyPass /photo/ http://192.168.1.2/photo/
        ProxyPassReverse /photo/ http://192.168.1.2/photo/
</VirtualHost>

Best Theo