Redirect problem

Discussion in 'Installation/Configuration' started by Morons, Aug 23, 2012.

  1. Morons

    Morons Member

    Well I have tried Alias-domain, Sub-domain and all combinations there-off and if I don't get a solid error I keep getting the same problem. :mad:

    My Scenario is this

    DNS set = ok pop.domain.tld A IP LITERAL
    DNS set = ok www.domain.tld A IP LITERAL

    If i set the redirect to my webmail /var/www/webmail
    lrwxrwxrwx  1 root root      16 Aug 23 20:34 webmail -> /var/www/webmail/
    I get
    Can you please explain why ISPConfig 3 generate this?

    Subdomain for website
    Host [pop]
    Domain [domain.tld]
    Redirect Type [L]
    Redirect Path [/webmail]
    Active [Y]
    <VirtualHost *:80>
          DocumentRoot /var/www/domain.tld/web
        ServerName domain.tld
        ServerAlias *.domain.tld
        ServerAlias pop.domain.tld
        ServerAdmin webmaster@domain.tld
        RewriteEngine on
        RewriteCond %{HTTP_HOST}   ^pop.domain.tld$ [NC]
            RewriteCond %{REQUEST_URI} !^/webdav/
        RewriteRule   ^/(.*)$ /webmail/$1  [L]
    Help - I guess my knowledge of this is not good :):confused:
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The redirect that ispconfig created in the file is correct for the details that you entered in the ispconfig interface. Please explain what you want the redirect to do.
  3. Morons

    Morons Member

    Last edited: Aug 24, 2012
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You added a loop, so apache adds webmail until the max loop depth is reached.

    Change the redirect type to "noflag" and set the redirect path to "http://domain.tld/webmail/"
  5. Morons

    Morons Member

    Changing to noflag does not remove the loop, where else can the loop get created? What must I search for?
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I explained you to change two settings, not just the redirect type. Please reraed post #4.

Share This Page