You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/06/12 04:54:00 UTC

DO NOT REPLY [Bug 45188] New: mod_rewrite make mod_headers and mod_expires invalid

https://issues.apache.org/bugzilla/show_bug.cgi?id=45188

           Summary: mod_rewrite make mod_headers and mod_expires invalid
           Product: Apache httpd-1.3
           Version: 1.3.41
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: csfrank122@hotmail.com


i have two site :
www.site.com
fr.site.com
in two different machines, they both behind many squids.

i want to redirect the French users who visit www.site.com to fr.site.com , so
i put the following lines in httpd.conf:

ServerName www.site.com
RewriteEngine On
RewriteCond %{HTTP:Accept-Language} ^fr
RewriteRule ^/$ http://fr.site.com/ [L,R=permanent]

it works well.

on the other hand, i want the squid to cache the above 301 responsion, so it
must contain a "Expire" header.
and i added the following:

ErrorHeader  set  Expire  "Thu, 12 Jun 2015 02:45:34 GMT"

but it doesn't work!

if i change the "RewriteEngine" to Off , it works!

by the way, apache 2.0 and 2.2 doesn't have this bug


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 45188] mod_rewrite make mod_headers and mod_expires invalid

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45188


csfrank <cs...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@webthing.com




--- Comment #2 from csfrank <cs...@hotmail.com>  2008-06-12 03:35:38 PST ---
thanks for your answer!
HTTP content negotiation can be used when the content between www.site.com and
fr.site.com is similar, but they are completely different. so  i have to
redirect the French,English,Spaish... users who visit www.site.com to
fr.site.com,en.site.com,sp.site.com ...

on the other hand, apache 2.0 and 2.2 can output "Expire" header in the same
situation.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 45188] mod_rewrite make mod_headers and mod_expires invalid

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45188





--- Comment #3 from Ruediger Pluem <rp...@apache.org>  2008-06-13 13:08:29 PST ---
*** Bug 45198 has been marked as a duplicate of this bug. ***


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 45188] mod_rewrite make mod_headers and mod_expires invalid

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45188


Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Nick Kew <ni...@webthing.com>  2008-06-12 02:52:08 PST ---
Please use a support forum for configuration issues.

But using mod_rewrite to re-invent HTTP content negotiation is just wrong:
you're inventing a square wheel where there's a perfectly good round one. 
Messing with expires headers is irrelevant.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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