The webserver is now configured properly for
*.openoffice.org. To test add a line similar
to
140.211.11.131 www.openoffice.org contributing.openoffice.org aa.openoffice.org
projects.openoffice.org security.openoffice.org qa.openoffice.org
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:
<VirtualHost *:80 *:443>
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
RewriteMap lowercase int:tolower
# qa.openoffice.org
RewriteCond ${lowercase:%{SERVER_NAME}} ^qa(?:\.\w+)?\.openoffice\.org$
RewriteRule /issues/(.*) https://issues.apache.org/ooo/$1 [L]
# contributing.openoffice.org
RewriteCond ${lowercase:%{SERVER_NAME}}
^contributing(?:\.\w+)?\.openoffice\.org$
RewriteRule (.*) http://incubator.apache.org/openofficeorg/get-involved.html
[L]
# security.openoffice.org
RewriteCond ${lowercase:%{SERVER_NAME}} ^security(?:\.\w+)?\.openoffice\.org$
RewriteRule (.*) http://incubator.apache.org/openofficeorg/security.html [L]
# 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
# 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]
</VirtualHost>
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.
HTH