HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Redirect problem (

Morons 23rd August 2012 22:22

Redirect problem
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

Not Found

The requested URL /webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/webmail/ was not found on this server.
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:

till 23rd August 2012 22:32

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.

Morons 24th August 2012 09:53

I simply want users that enter http://pop.domain.tld to go to the http://domain.tld/webmail/src/login.php or http://domain.tld/webmail/ where they can use squirrelmail
http://www.domain.tld and http://domain.tld has web content

It used to work then we re-did the domain.tld website - thereafter it was messed up. We changed it ti SuEXEC and fastCGI for use with Joomla

Why does the directive add so many /webmail's ?

till 24th August 2012 10:12


Why does the directive add so many /webmail's ?
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/"

Morons 24th August 2012 14:09

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

till 24th August 2012 14:12

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

All times are GMT +2. The time now is 04:38.

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