Hello!
I’m currently trying to host my MAIB behind a proxy, so that I can have my main webserver as the “face outwards”.
My proxy setting in apache2 is as follows: (it is setup as a virtual host)
<VirtualHost *:443>
ServerName mail.******.***
SSLProxyEngine on
SSLCertificateFile pathtocertificate (modified for forum)
SSLCertificateKeyFIle paththere
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off (these were to help with the server having an internal certificate, and the apache server having the external certificate)
<Proxy *>
Order deny, allow
Allow from all
</Proxy>
<Location />
ProxyPass https://ip.address.here/
ProxyPassReverse https://ip.address.here/
Header unset X-Content-Type-Options I've tried without this as well.
Header unset X-Frame-Options
</Location>
</VirtualHost>
Whenever I open the webmail, everything works fine. But when I try to open a specific setting, or when I try to open an email, there pops up an error that the content can’t be displayed due to X-Frames Policy. I’ve tried to modify roundcubes config to not send the X-Frames headers, but reverted the settings when it didn’t work.
Does anybody have any experience with this? Do I have to make MAIB face outwards, with a proxy to my webserver? Am I doing something wrong?
Thankful for any answers/help!
Oskar