How to reach SOGo3 webmail over a reverse proxy?

Yes I do:

[code]

    RewriteEngine on
    RewriteCond %{HTTPS} !on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301]
    ProxyPreserveHost On
    ServerName webmail.domain.tld
    ProxyPass / http://IP_NS1/SOGo/
    ProxyPassReverse / http://IP_NS1/SOGo/



#    RewriteEngine on
#    RewriteCond %{HTTPS} !on
#    RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301]
#    RewriteRule ^ https://%{INTERNAL_IP/}%{REQUEST_URI} [END,QSA,R=permanent]

     SSLEngine On
     SSLProxyEngine On

    ProxyPreserveHost On
    ServerName webmail.domain.tld
    ProxyPass / https://IP_NS1/SOGo/
    ProxyPassReverse / https://IP_NS1/SOGo/

[/code] 

EDIT: do you mean “webmail.domain.tld” should only point to “NS1.domain.tld” and then “webmail.domain.tld/SOGo” should be used to reach sogo?
I try immediately!

1 Like