You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrea Galli <an...@tp-italia.com> on 2016/11/06 15:21:13 UTC

[users@httpd] Apache 2.4 Redirect loop

Hello guys,

I’ve configured virtual host as named-base for multiple domains on one IP
public, all works fine but on one domain I have to use redirect but it
didn’t works because it goes in loop, this is my conf:



<VirtualHost *:80>

    DocumentRoot "C:/Web/Tomcat/webapps/SITE2"

    DirectoryIndex index.htm index.html

    ServerName test.site2.com

    ServerAlias *. site2.com

*   Redirect / http://test.site2.com/SITE2 <http://test.site2.com/SITE2>*



                Alias /SITE2 "C:/Web/Tomcat/webapps/SITE2"



                <Directory "C:/Web/Tomcat/webapps/SITE2/">

                Options FollowSymLinks Includes

                AllowOverride All

                Require all granted

                </Directory>

                <Location "/SITE2/WEB-INF/">

                                Require all denied

                </Location>

JkMount /SITE2/servlet/* ajp13

JkMount /SITE2/*.jsp ajp13

</VirtualHost>



When I hit *http://test.site2.com <http://test.site2.com>  * I would
redirect to http://test.site2.com/SITE2  but instead of this it goes in
loop as follow:  http://test.site2.com/SITE2SITE2SITE2SITE2.....



Someone can hep me?

I don’t want to use mod_rewite so I ask you if there is a method for get my
aim.



Thanks very much

Andrew

[users@httpd] R: [users@httpd] Apache 2.4 Redirect loop

Posted by Andrea Galli <an...@tp-italia.com>.
It works perfectly!

Thanks so much Eric
Andrew

-----Messaggio originale-----
Da: Eric Covener [mailto:covener@gmail.com]
Inviato: domenica 6 novembre 2016 16:32
A: users@httpd.apache.org
Oggetto: Re: [users@httpd] Apache 2.4 Redirect loop

On Sun, Nov 6, 2016 at 10:21 AM, Andrea Galli <an...@tp-italia.com>
wrote:
>    Redirect / http://test.site2.com/SITE2


Limit it with RedirectMatch ^/$ http://test.site2.com/SITE2

--
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.4 Redirect loop

Posted by Eric Covener <co...@gmail.com>.
On Sun, Nov 6, 2016 at 10:21 AM, Andrea Galli
<an...@tp-italia.com> wrote:
>    Redirect / http://test.site2.com/SITE2


Limit it with RedirectMatch ^/$ http://test.site2.com/SITE2

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org