Rewrite rules for 10.4, 10.5

132 views
Skip to first unread message

David Nelson

unread,
Oct 28, 2013, 2:59:25 PM10/28/13
to repo...@googlegroups.com
Some time ago I discovered that Tiger and Leopard weren't being
redirected to the correct catalogs. At first I figured it was something
wrong with my configuration, but I noticed the server access/error logs
weren't showing Darwin in the string at all so they didn't meet the
conditions we were looking for. They'd look something like this:
[ip and date here] "GET /index.sucatalog HTTP/1.1" 404 567 "-"
"CFNetwork/129.24"

I ended up checking the CFNetwork version instead, and that worked fine.
Any thoughts on what I did wrong and/or why this would be happening?
Here's the set of conditions and rules I'm currently using:

RewriteCond %{HTTP_USER_AGENT} CFNetwork/129
RewriteRule ^index(.*)\.sucatalog$ content/catalogs/index-1.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} CFNetwork/217
RewriteRule ^index(.*)\.sucatalog$
content/catalogs/others/index-leopard.merged-1.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/10
RewriteRule ^index(.*)\.sucatalog$
content/catalogs/others/index-leopard-snowleopard.merged-1_Default.sucatalog
[L]
RewriteCond %{HTTP_USER_AGENT} Darwin/11
RewriteRule ^index(.*)\.sucatalog$
content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/12
RewriteRule ^index(.*)\.sucatalog$
content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
[L]
RewriteCond %{HTTP_USER_AGENT} Darwin/13
RewriteRule ^index(.*)\.sucatalog$
content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
[L]

Gregory Neagle

unread,
Oct 28, 2013, 3:04:53 PM10/28/13
to repo...@googlegroups.com

On Oct 28, 2013, at 11:59 AM, David Nelson <da...@davidnelson.net> wrote:

> Some time ago I discovered that Tiger and Leopard weren't being redirected to the correct catalogs. At first I figured it was something wrong with my configuration, but I noticed the server access/error logs weren't showing Darwin in the string at all so they didn't meet the conditions we were looking for. They'd look something like this:
> [ip and date here] "GET /index.sucatalog HTTP/1.1" 404 567 "-" "CFNetwork/129.24"
>
> I ended up checking the CFNetwork version instead, and that worked fine. Any thoughts on what I did wrong

You might not be doing anything wrong. You might be the only person using reposado, URLrewrites and Tiger and Leopard clients in 2013!

-Greg

> and/or why this would be happening? Here's the set of conditions and rules I'm currently using:
>
> RewriteCond %{HTTP_USER_AGENT} CFNetwork/129
> RewriteRule ^index(.*)\.sucatalog$ content/catalogs/index-1.sucatalog [L]
> RewriteCond %{HTTP_USER_AGENT} CFNetwork/217
> RewriteRule ^index(.*)\.sucatalog$ content/catalogs/others/index-leopard.merged-1.sucatalog [L]
> RewriteCond %{HTTP_USER_AGENT} Darwin/10
> RewriteRule ^index(.*)\.sucatalog$ content/catalogs/others/index-leopard-snowleopard.merged-1_Default.sucatalog [L]
> RewriteCond %{HTTP_USER_AGENT} Darwin/11
> RewriteRule ^index(.*)\.sucatalog$ content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog [L]
> RewriteCond %{HTTP_USER_AGENT} Darwin/12
> RewriteRule ^index(.*)\.sucatalog$ content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog [L]
> RewriteCond %{HTTP_USER_AGENT} Darwin/13
> RewriteRule ^index(.*)\.sucatalog$ content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog [L]
>
> --
> You received this message because you are subscribed to the Google Groups "reposado" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to reposado+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

David Nelson

unread,
Oct 28, 2013, 3:44:12 PM10/28/13
to repo...@googlegroups.com
Hah, fair enough. Thanks for the reply!
David

Kostas Backas-Gmail

unread,
Oct 28, 2013, 5:25:58 PM10/28/13
to repo...@googlegroups.com
As ACSP, we have lots of Tiger and Leopard clients come and go.

Best regards

Kostas
Reply all
Reply to author
Forward
0 new messages