Re:Re: [users@httpd] rewrite rule leads to infinite rewrite loop at apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric,

My below configuration is just going to jump the url from http://rm.jco.com.cn/myjco/orders/xxxx  to https://rm.jco.com.cn/myjco/orders/xxxx
But it leads to infinite rewrite loop inside apache

RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP_HOST}   ^rm.jco.com.cn$
RewriteCond %{REQUEST_URI} ^/myjco/orders
RewriteRule (.*) https://rm.jco.com.cn/myjco/orders [L,R]


Anyother configuration as below showing could successfully jump the url from  http://www.jco.com.cn/myjco/mySecurity/xxx to  https://www.jco.com.cn/myjco/mySecurityxxx


RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP_HOST}   ^www.jco.com.cn$
RewriteCond %{REQUEST_URI} ^/myjco/mySecurity
RewriteRule (.*) https://www.jco.com.cn/myjco/mySecurity [L,R]

What's my error in my configuration? How to troubleshooting this issue?

Thanks,
S

At 2015-07-16 00:38:14, "Eric Covener" <covener@xxxxxxxxx> wrote: >On Wed, Jul 15, 2015 at 12:32 PM, javalishixml <javalishixml@xxxxxxx> wrote: >> RewriteCond %{REQUEST_URI} ^/myjco/mySecurity > > >You probably meant to negate this one, specifically to avoid the loop? > >-- >Eric Covener >covener@xxxxxxxxx > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux