Webmail on port 80, ISPConfig on port 81

Discussion in 'Installation/Configuration' started by wonka, Feb 27, 2007.

  1. wonka

    wonka New Member

    Hi,

    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 -> http://www.server.com:81/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,

    Edo
     
  2. till

    till Super Moderator

  3. wonka

    wonka New Member

  4. falko

    falko Super Moderator

    What did you do so far?
     
  5. wonka

    wonka New Member

    I´ve 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: www.server.com
    Domain created from ISPConfig: www.domain.tld

    So among other things I´ve 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/bugs.inc 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:
    ---------------
    Loads www.server.com:81/webmail
    (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,

    Edo
     
  6. falko

    falko Super Moderator

    Please try
    Code:
    RewriteEngine on
    RewriteRule ^/webmail http://www.domain.tld:81/webmail [L]
    or
    Code:
    RewriteEngine on
    RewriteRule ^/webmail http://www.domain.tld:81/webmail [R]
    instead.
     

Share This Page