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 B3A4770B7 for ; Sun, 25 Dec 2011 21:19:00 +0000 (UTC) Received: (qmail 94954 invoked by uid 500); 25 Dec 2011 21:19:00 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 94114 invoked by uid 500); 25 Dec 2011 21:18:59 -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 94099 invoked by uid 99); 25 Dec 2011 21:18:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Dec 2011 21:18:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dave2wave@comcast.net designates 76.96.30.16 as permitted sender) Received: from [76.96.30.16] (HELO qmta01.emeryville.ca.mail.comcast.net) (76.96.30.16) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Dec 2011 21:18:50 +0000 Received: from omta18.emeryville.ca.mail.comcast.net ([76.96.30.74]) by qmta01.emeryville.ca.mail.comcast.net with comcast id DZCX1i0011bwxycA1ZJQ8P; Sun, 25 Dec 2011 21:18:24 +0000 Received: from [192.168.1.7] ([67.180.51.144]) by omta18.emeryville.ca.mail.comcast.net with comcast id DZv21i00G36gVt78eZv33Y; Sun, 25 Dec 2011 21:55:03 +0000 Subject: Re: *.openoffice.org testing Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/alternative; boundary=Apple-Mail-2191-795841978 From: Dave Fisher In-Reply-To: <1324847395.12386.YahooMailNeo@web160906.mail.bf1.yahoo.com> Date: Sun, 25 Dec 2011 13:18:29 -0800 Cc: "ooo-dev@incubator.apache.org" , "infrastructure@apache.org" Message-Id: <0CEABE2D-BDDC-406E-B1B3-7AA7782A919A@comcast.net> References: <1324845728.26309.YahooMailNeo@web160906.mail.bf1.yahoo.com> <187B7151-141A-4C5C-8537-B39EE28B91D4@comcast.net> <1324847395.12386.YahooMailNeo@web160906.mail.bf1.yahoo.com> To: Joe Schaefer X-Mailer: Apple Mail (2.1084) --Apple-Mail-2191-795841978 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Joe, Works great! BTW - I have a patch for ASF/Util.pm / sort_tables for you. It does = columns of rows - side by side. Regards, Dave On Dec 25, 2011, at 1:09 PM, Joe Schaefer wrote: > 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 --Apple-Mail-2191-795841978--