Hi List,
i am in the process of setting up roundcube behind an apache reverse proxy.
Webclilent(https://my.site/webmail) -> apache proxy(http://192.168.3.3/webmail) -> roundcube server(at 192.168.3.3)
It looks like the roundcube returns content with absolute url's. And these url's then look like "http://192.168.3.3" which from the inet wont work.
Can please one give me some hints what screws to turn.
Thank you. Regards, Axel
Axel Christiansen skrev den 2013-06-14 11:18:
Can please one give me some hints what screws to turn.
add to /etc/hosts 192.168.3.3 my.site my
its important fqdn first and all alias last, this is pr ip, so do not add the whole to 127.0.0.1 :)
Thanks. nice idea.
Some how i could not get it working for me. What i am actually using ist iRed. The iredadmin and phpldapadmin websites do fine behind the proxy.
Would be nice if roudcube could be configured behaving similar.
############################################################## Header from Browser https://my.site/mail/
GET /mail/ HTTP/1.1 Host: my.site User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Cookie: roundcube_sessid=bl9qrpabtgdsmpru1hlc2921d1 Connection: keep-alive If-Modified-Since: Fri, 14 Jun 2013 10:39:18 GMT
HTTP/1.1 302 Found Date: Fri, 14 Jun 2013 10:43:21 GMT Server: Apache Expires: Fri, 14 Jun 2013 10:43:21 GMT Cache-Control: private, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Last-Modified: Fri, 14 Jun 2013 10:43:21 GMT x-dns-prefetch-control: off Location: https://192.168.133.3/mail/ Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 20 Content-Type: text/html Keep-Alive: timeout=5, max=100 Connection: Keep-Alive ##############################################################
Am 14.06.13 12:14, schrieb Benny Pedersen:
Axel Christiansen skrev den 2013-06-14 11:18:
Can please one give me some hints what screws to turn.
add to /etc/hosts 192.168.3.3 my.site my
its important fqdn first and all alias last, this is pr ip, so do not add the whole to 127.0.0.1 :)
Hi,
looks like the proxying Apache can't find a name for itself. Does your proxy vhost setting contains any ServerName/ServerAlias for your URL context? How did you set up your proxy?
I have no issues with these settings:
NameVirtualHost *:80 <VirtualHost *:80> ServerName public-fqdn ProxyPass /roundcubemail/ https://internal-fqdn/roundcubemail/ ProxyPassReverse /roundcubemail/ https://internal-fqdn/roundcubemail/
</VirtualHost>
-Martin