1

Topic: iRedMail behind apache reverse proxy

Hi,

I was trying to put my mail server behind my web server with the help of Apache module mod_proxy.

If you need to understand the complete scenario, I would like to reach to my mail server from a directory after my web server. eg, https://domain.com/test where /test should be from another server but not same (otherwise we may use Alias).

I have somehow managed to reach to the login page of mail server but whenever I try to click login button (using correct credentials or not), my website automatically gets redirected to https://domain.com from https://domain.com/test.

Any suggestion please?

Below is a information from my httpd-ssl.conf file.
SSLProxyEngine On
#LogLevel debug
ProxyPreserveHost On
ProxyPass /test https://localserver1/mail/
ProxyPassReverse /test https://localserver1/mail/

<Location /test>
  Order allow,deny
#  Options -Indexes
  Allow from all
</Location>

The error log stats something like this.

[Sun Nov 10 09:05:04 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/skins, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:05:04 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/plugins, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:05:04 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/skins, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:05:04 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/program, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:05:04 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/program, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:05:04 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/program, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:05:05 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/plugins, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:05:05 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/program, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:05:05 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/skins, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:05:06 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/skins
[Sun Nov 10 09:10:20 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/skins, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:10:20 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/plugins, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:10:20 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/skins, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:10:20 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/program, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:10:20 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/program, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:10:20 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/program, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:10:21 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/program, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:10:21 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/plugins, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:10:21 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/skins, referer: [url]https://domain.com/test[/url]
[Sun Nov 10 09:10:27 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/assets\\img\\circle, referer: [url]https://domain.com/[/url]
[Sun Nov 10 09:10:27 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/assets\\img\\circle, referer: [url]https://domain.com/[/url]
[Sun Nov 10 09:10:27 2013] [error] [client localIP] File does not exist: /var/www/html/interdata/domain.com/webtrunk/stable/index/assets\\img\\circle, referer: [url]https://domain.com/[/url]

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.4 x64
- Related log if you're reporting an issue:
====


Regards,
Abhishek Kotecha

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail behind apache reverse proxy

I didn't use mod_proxy before, it's better to check its manual page first, or asking in Apache mailing list:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html