https://bugzilla.wikimedia.org/show_bug.cgi?id=35215

--- Comment #11 from Max Semenik <[email protected]> 2012-11-28 20:52:39 
UTC ---
The solution (admittedly, ugly one) is to make the redirector redirect to http
or https depending on command-line argument and have two sets of redirection
rules, one for http and another for https. In such case, the bottom of
mobile_acls.conf would look something like that:

acl forwarded_https req_header X-Forwarded-Proto https

url_rewrite_access allow mobile wpcontent !nomobile !nomobileua !mobtrial
!forwarded_https
url_rewrite_access allow wap wpcontent !nomobile !nomobileua !mobtrial
!forwarded_https
url_rewrite_access allow mobile googlebot !forwarded_https
url_rewrite_program /usr/local/bin/redirector
url_rewrite_children 100
url_rewrite_concurrency 200

url_rewrite_access allow mobile wpcontent !nomobile !nomobileua !mobtrial
forwarded_https
url_rewrite_access allow wap wpcontent !nomobile !nomobileua !mobtrial
forwarded_https
url_rewrite_access allow mobile googlebot forwarded_https
url_rewrite_program /usr/local/bin/redirector --https
url_rewrite_children 100
url_rewrite_concurrency 200

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

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to