HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Webmail on port 80, ISPConfig on port 81 (

wonka 27th February 2007 05:23

Webmail on port 80, ISPConfig on port 81

I'm aware that this issue has been discussed previously, but after reading for a couple of hours the ISPConfig forum, it seems the answer is still missing. I'm looking for a way to accomplish this redirect:

http://www.domain.tld/webmail -> http://www.domain.tld:81/webmail

So far, I've tested apache's redirect as suggested and it works regarding the redirect part, but at the URL it shows the address of the localhost and not the domain.tld created. In other words, it works like this:

http://www.domain.tld/webmail ->

which for me is somehow a partial solution, as I'm trying to make a transparent webmail for every domain created.

I don't think that the "install a webmail on each domain" solution is practical; and the "create a webmail.domain.tld each time" isn't too; so I guess there's got to be a way.

So the question remains: How can I make a redirect like the first case. Can anyone suggest a rewrite rule that can accomplish this? Something like:

RewriteRule /webmail :81/webmail

Please post any advise regarding this issue I'll appreciate it very, very much.

Thank you,


till 27th February 2007 09:25

Please have a look here:

wonka 1st March 2007 20:06

For future references, I still haven't accomplished this yet. When I go to:


The URL bar from the browser still shows:

Even after testing what that post says.

falko 2nd March 2007 14:25

What did you do so far?

wonka 2nd March 2007 17:43

Ive tested alias, rewrites and redirects. My current config is ISPServer 2.2.10, Apache 2.0.52, and Roundcube webmail (I know it is still beta but I'd like to use something different than squirrelmail).

Everything works fine and the issue is just making invisible the server URL when loading the webmail from other created domain.

Server running ISPConfig:
Domain created from ISPConfig: www.domain.tld

So among other things Ive tested this at the domain.tld section on Vhosts_ispconfig.conf:

Test 1:
Alias /webmail "/home/admispconfig/ispconfig/web/webmail"

Result 1:
Roundcube page loads with no login fields and an error that says "SERVICE CURRENTLY NOT AVAILABLE Error No. 1f4)"
Also /var/www/web4/log/error.log (which is the log file for www.domain.tld) shows "PHP Notice: DB Error: extension not found in /home/admispconfig/ispconfig/web/webmail/program/include/ on line 80".
But if I load www.domain.tld:81/webmail Roundcube loads fine.

Test 2:
Redirect /webmail http://www.domain.tld:81/webmail

Test 3:
RewriteEngine on
RewriteRule ^/webmail http://%{SERVER_NAME}:81/webmail

Test 4:
RewriteEngine on
RewriteRule ^/webmail http://www.domain.tld:81/webmail

Results 2, 3, 4:
(Remember that the expected result should be that the browser shows as URL www.domain.tld:81/webmail)

Please advise what can I test. Thanks,


falko 3rd March 2007 16:46

Please try

RewriteEngine on
RewriteRule ^/webmail http://www.domain.tld:81/webmail [L]


RewriteEngine on
RewriteRule ^/webmail http://www.domain.tld:81/webmail [R]


All times are GMT +2. The time now is 13:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.