I have installed Rainloop docker container on port 9001 and with a map volume from “/rainloop/data” to “/home/webmail.domain.dk/public_html/Data”. The container is running. When I open https://[My IP]:9001 it is working. I have followed the following article:
To get webmail.domain.dk to point to [My IP]:9001 I have changed the file /usr/local/lsws/conf/httpd_config.conf so the following is inserted:
extprocessor webmail.domain.dk {
type proxy
address [My IP]:9001
maxConns 100
pcKeepAliveTimeout 60
initTimeout 60
retryTimeout 0
respBuffer 0
}
I have made the following rewrite rule in .htaccess:
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
REWRITERULE ^(.*)$ https://webmail.domain.dk/$1 [P]
However it is not working. I don’t see the Rainloop login when I enter the subdomain. Instead I get a 500 message. Any ideas to what I can try to make it work?