Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66299 - website/public_html/beta/doc
From: dnljms_at_[hidden]
Date: 2010-10-31 16:31:22


Author: danieljames
Date: 2010-10-31 16:31:21 EDT (Sun, 31 Oct 2010)
New Revision: 66299
URL: http://svn.boost.org/trac/boost/changeset/66299

Log:
Try serving up some static files without php.
Text files modified:
   website/public_html/beta/doc/.htaccess | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: website/public_html/beta/doc/.htaccess
==============================================================================
--- website/public_html/beta/doc/.htaccess (original)
+++ website/public_html/beta/doc/.htaccess 2010-10-31 16:31:21 EDT (Sun, 31 Oct 2010)
@@ -9,10 +9,16 @@
 
 RewriteRule ^html(/.*)?$ libs/release/doc/html$1 [R]
 
-# Always serve up the latest css/image files.
+# Always serve up the latest css/image files in doc/html and doc/src.
 RewriteRule ^libs/[^/]*/doc/(?:html|src)/(.*\.css)$ libs/common/doc/src/$1 [L]
 RewriteRule ^libs/[^/]*/doc/(?:html|src)/images/([^/]*)$ libs/common/doc/src/images/$1 [L]
 
+# Serve some other static files directly from archive
+# Requires an appropriate soft link.
+# RewriteCond %{DOCUMENT_ROOT}/doc/archives -l
+RewriteCond %{DOCUMENT_ROOT}/doc/archives/boost_$1 -f
+RewriteRule ^libs/([0-9_]+/.*\.(?:png|gif|jpg|jpeg|jpe|css|js|pdf|dtd))$ archives/boost_$1 [L]
+
 # Redirect from symbolic names to current versions.
 RewriteRule ^libs/release(/.*)?$ libs/1_44_0$1 [R]
 RewriteRule ^libs/development(/.*)?$ libs/1_44_0$1 [R]


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk