diff options
author | Dexter Morgan <dmorgan@mageia.org> | 2012-02-20 18:35:08 +0000 |
---|---|---|
committer | Dexter Morgan <dmorgan@mageia.org> | 2012-02-20 18:35:08 +0000 |
commit | ab5c6193f31d62c2a05cb273127f19a9a104e05c (patch) | |
tree | 081c6de3aafb39fd28d3c58aa89ad6b07cc68947 /deployment | |
parent | f3f317236ef8f38a37561b0258761f1194605583 (diff) | |
download | puppet-ab5c6193f31d62c2a05cb273127f19a9a104e05c.tar puppet-ab5c6193f31d62c2a05cb273127f19a9a104e05c.tar.gz puppet-ab5c6193f31d62c2a05cb273127f19a9a104e05c.tar.bz2 puppet-ab5c6193f31d62c2a05cb273127f19a9a104e05c.tar.xz puppet-ab5c6193f31d62c2a05cb273127f19a9a104e05c.zip |
use static.mageia.org to serve www.mageia.org/g/ static contents ( patch from rda
Diffstat (limited to 'deployment')
-rw-r--r-- | deployment/websites/templates/vhost_www.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deployment/websites/templates/vhost_www.conf b/deployment/websites/templates/vhost_www.conf index 8c8c8acc..01066cdf 100644 --- a/deployment/websites/templates/vhost_www.conf +++ b/deployment/websites/templates/vhost_www.conf @@ -1,5 +1,9 @@ Redirect /wiki https://wiki.mageia.org/# +# Everything under /g/ is static content to be served by a seconday host +RewriteEngine On +RewriteRule ^g/(.+)$ http://static.mageia.org/g/$1 [R,L,QSA] + # ProxyPreserveHost On is in another file ProxyPass /old-wiki/ http://ryu.zarb.org/wiki ProxyPassReverse /old-wiki/ http://ryu.zarb.org/wiki |