Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89C2B7E1C for ; Sun, 25 Dec 2011 21:37:07 +0000 (UTC) Received: (qmail 3261 invoked by uid 500); 25 Dec 2011 21:37:07 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 3167 invoked by uid 500); 25 Dec 2011 21:37:07 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 3159 invoked by uid 99); 25 Dec 2011 21:37:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Dec 2011 21:37:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dave2wave@comcast.net designates 76.96.30.48 as permitted sender) Received: from [76.96.30.48] (HELO qmta05.emeryville.ca.mail.comcast.net) (76.96.30.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Dec 2011 21:36:56 +0000 Received: from omta12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by qmta05.emeryville.ca.mail.comcast.net with comcast id DZb31i0010x6nqcA5ZcUnm; Sun, 25 Dec 2011 21:36:28 +0000 Received: from [192.168.1.7] ([67.180.51.144]) by omta12.emeryville.ca.mail.comcast.net with comcast id DZd91i00d36gVt78YZd9Bw; Sun, 25 Dec 2011 21:37:10 +0000 Subject: Re: *.openoffice.org testing Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Dave Fisher In-Reply-To: <1324848171.36022.YahooMailNeo@web160903.mail.bf1.yahoo.com> Date: Sun, 25 Dec 2011 13:36:33 -0800 Cc: "infrastructure@apache.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <1324845728.26309.YahooMailNeo@web160906.mail.bf1.yahoo.com> <187B7151-141A-4C5C-8537-B39EE28B91D4@comcast.net> <1324847395.12386.YahooMailNeo@web160906.mail.bf1.yahoo.com> <0CEABE2D-BDDC-406E-B1B3-7AA7782A919A@comcast.net> <1324848171.36022.YahooMailNeo@web160903.mail.bf1.yahoo.com> To: ooo-dev@incubator.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Hi Joe, One more rewrite. On Dec 25, 2011, at 1:22 PM, Joe Schaefer wrote: > Current vhost: >=20 > > DocumentRoot /x1/www/ooo-site.apache.org/content > ServerName ooo-site.apache.org > ServerAlias *.openoffice.org > ServerAlias openoffice.org > UseCanonicalName Off > RewriteEngine On > RewriteOptions inherit > RewriteRule ^/favicon.ico = /x1/www/ooo-site.apache.org/content/favicon.ico >=20 > RewriteMap lowercase int:tolower >=20 > # qa.openoffice.org > RewriteCond ${lowercase:%{SERVER_NAME}} = ^qa(?:\.\w+)?\.openoffice\.org$ > RewriteRule /issues/(.*) https://issues.apache.org/ooo/$1 [L] There is one more url form that needs this rewrite: http://www.openoffice.org/issues/show_bug.cgi?id=3D100436 Regards, Dave >=20 > # contributing.openoffice.org > RewriteCond ${lowercase:%{SERVER_NAME}} = ^contributing(?:\.\w+)?\.openoffice\.org$ > RewriteRule (.*) = http://incubator.apache.org/openofficeorg/get-involved.html [L] >=20 > # security.openoffice.org > RewriteCond ${lowercase:%{SERVER_NAME}} = ^security(?:\.\w+)?\.openoffice\.org$ > RewriteRule (.*) = http://incubator.apache.org/openofficeorg/security.html [L] > =20 > # change foo.openoffice.org/... to www.openoffice.org/foo/... if = exists > RewriteCond ${lowercase:%{SERVER_NAME}} = ^(\w+)(?:\.\w+)?\.openoffice\.org$ > RewriteCond /x1/www/ooo-site.apache.org/content/%1 -d > RewriteRule ^(.*)$ ${lowercase:%{SERVER_NAME}}$1 [C] > RewriteRule ^(\w+)(?:\.\w+)?\.openoffice\.org/(.*) = http://www.openoffice.org/$1/$2 [L] >=20 > >=20 >=20 >=20 > HTH >=20 >=20 >=20 >=20 >> ________________________________ >> From: Dave Fisher >> To: Joe Schaefer =20 >> Cc: "ooo-dev@incubator.apache.org" ; = "infrastructure@apache.org" =20 >> Sent: Sunday, December 25, 2011 4:18 PM >> Subject: Re: *.openoffice.org testing >>=20 >> Hi Joe, >>=20 >> Works great! >>=20 >> BTW - I have a patch for ASF/Util.pm / sort_tables for you. It does = columns of rows - side by side. >>=20 >> Regards, >> Dave >>=20 >> On Dec 25, 2011, at 1:09 PM, Joe Schaefer wrote: >>=20 >>> Made some adjustments based on your feedback. >>> Try testing again. >>>=20 >>> From: Dave Fisher >>> To: ooo-dev@incubator.apache.org=20 >>> Cc: "infrastructure@apache.org" =20 >>> Sent: Sunday, December 25, 2011 3:57 PM >>> Subject: Re: *.openoffice.org testing >>>=20 >>> Hi Joe, >>>=20 >>> Some of these aren't working the way I expected. = projects.openoffice.org and qa.openoffice.org are currently losing their = style. >>>=20 >>>> # change foo.openoffice.org/... to = ${DocumentRoot}/content/foo/... if exists >>>> RewriteCond ${lowercase:%{SERVER_NAME}} = ^(\w+)(?:\.\w+)?\.openoffice\.org$ >>>> RewriteCond /x1/www/ooo-site.apache.org/content/%1 -d >>>> RewriteRule ^(.*)$ ${lowercase:%{SERVER_NAME}}$1 [C] >>>> RewriteRule ^(\w+)(?:\.\w+)?\.openoffice\.org/(.*) = /x1/www/ooo-site.apache.org/content/$1/$2 >>>=20 >>> I think that this needs an [L] >>>=20 >>> I'm expecting and have written hrefs to expect that foo is in the = url www.openoffice.org/foo/ after the redirect. >>>=20 >>> I'm not sure what this rule is for: >>>=20 >>>> # change proj.openoffice.org/... to = www.openoffice.org/projects/proj/... if exists >>>> RewriteCond ${lowercase:%{SERVER_NAME}} = ^(\w+)(?:\.\w+)?\.openoffice\.org$ >>>> RewriteCond /x1/www/ooo-site.apache.org/content/projects/%1 -d >>>> RewriteRule ^(.*)$ ${lowercase:%{SERVER_NAME}}$1 [C] >>>> RewriteRule ^(\w+)(?:\.\w+)?\.openoffice\.org/(.*) = http://www.openoffice.org/projects/$1/$2 [L] >>>=20 >>> Regards, >>> Dave >>>=20 >>>=20 >>> On Dec 25, 2011, at 12:42 PM, Joe Schaefer wrote: >>>=20 >>>> The webserver is now configured properly for >>>> *.openoffice.org. To test add a line similar >>>> to >>>>=20 >>>> 140.211.11.131 www.openoffice.org contributing.openoffice.org = aa.openoffice.org projects.openoffice.org security.openoffice.org = qa.openoffice.org >>>>=20 >>>>=20 >>>> to your /etc/hosts file and hit a few urls with >>>> those hostnames. For the crufty mod_rewrite veteran, >>>> the VirtualHost we're using is as follows: >>>>=20 >>>> >>>> DocumentRoot /x1/www/ooo-site.apache.org/content >>>> ServerName ooo-site.apache.org >>>> ServerAlias *.openoffice.org >>>> ServerAlias openoffice.org >>>> UseCanonicalName Off >>>> RewriteEngine On >>>> RewriteOptions inherit >>>> RewriteRule ^/favicon.ico = /x1/www/ooo-site.apache.org/content/favicon.ico >>>>=20 >>>> RewriteMap lowercase int:tolower >>>>=20 >>>> # qa.openoffice.org >>>> RewriteCond ${lowercase:%{SERVER_NAME}} = ^qa(?:\.\w+)?\.openoffice\.org$ >>>> RewriteRule /issues/(.*) https://issues.apache.org/ooo/$1 [L] >>>>=20 >>>> # contributing.openoffice.org >>>> RewriteCond ${lowercase:%{SERVER_NAME}} = ^contributing(?:\.\w+)?\.openoffice\.org$ >>>> RewriteRule (.*) = http://incubator.apache.org/openofficeorg/get-involved.html [L] >>>>=20 >>>> # security.openoffice.org >>>> RewriteCond ${lowercase:%{SERVER_NAME}} = ^security(?:\.\w+)?\.openoffice\.org$ >>>> RewriteRule (.*) = http://incubator.apache.org/openofficeorg/security.html [L] >>>> =20 >>>> # change foo.openoffice.org/... to = ${DocumentRoot}/content/foo/... if exists >>>> RewriteCond ${lowercase:%{SERVER_NAME}} = ^(\w+)(?:\.\w+)?\.openoffice\.org$ >>>> RewriteCond /x1/www/ooo-site.apache.org/content/%1 -d >>>> RewriteRule ^(.*)$ ${lowercase:%{SERVER_NAME}}$1 [C] >>>> RewriteRule ^(\w+)(?:\.\w+)?\.openoffice\.org/(.*) = /x1/www/ooo-site.apache.org/content/$1/$2 >>>>=20 >>>> # change proj.openoffice.org/... to = www.openoffice.org/projects/proj/... if exists >>>> RewriteCond ${lowercase:%{SERVER_NAME}} = ^(\w+)(?:\.\w+)?\.openoffice\.org$ >>>> RewriteCond /x1/www/ooo-site.apache.org/content/projects/%1 -d >>>> RewriteRule ^(.*)$ ${lowercase:%{SERVER_NAME}}$1 [C] >>>> RewriteRule ^(\w+)(?:\.\w+)?\.openoffice\.org/(.*) = http://www.openoffice.org/projects/$1/$2 [L] >>>>=20 >>>> >>>>=20 >>>>=20 >>>>=20 >>>> Note the choice of final rewrite rule for foo.openoffice.org >>>> is a filesystem redirect so the content/foo/ dir will >>>> function as DocumentRoot. If that is not the >>>> desired behavior I suggest using a redirect rule similar >>>> to what I did for proj.openoffice.org above. >>>>=20 >>>>=20 >>>> HTH >>>=20 >>>=20 >>>=20 >>=20 >>=20 >>=20