mirror of
https://github.com/boostorg/website.git
synced 2026-01-29 20:12:14 +00:00
88 lines
3.6 KiB
ApacheConf
88 lines
3.6 KiB
ApacheConf
Deny from 65.55.52.94
|
|
Deny from 100.43.83.160
|
|
Deny from 110.209.193.111
|
|
AddType text/html .shtml
|
|
AddOutputFilter INCLUDES .shtml
|
|
AddOutputFilter INCLUDES .html
|
|
|
|
Options -MultiViews
|
|
|
|
AddType text/x-component .htc
|
|
|
|
DirectoryIndex index.php index.shtml index.html
|
|
|
|
# Override cache headers for the index files are updated more regularly than
|
|
# other html files.
|
|
<FilesMatch "index\.html|index\.php">
|
|
Header unset Cache-Control
|
|
Header unset Expires
|
|
</FilesMatch>
|
|
|
|
RewriteEngine On
|
|
RewriteBase /
|
|
|
|
########## Block Morfeus scanning
|
|
|
|
RewriteCond %{HTTP_USER_AGENT} ^Morfeus
|
|
RewriteRule ^.*$ - [F]
|
|
|
|
########## Redirect to the canonical URL.
|
|
|
|
RewriteCond %{HTTP_HOST} ^boost\.org [NC]
|
|
RewriteRule ^.*$ http://www\.boost\.org%{REQUEST_URI} [R=301]
|
|
|
|
########## Rewrites to serve up news pages.
|
|
|
|
RewriteRule ^users/news/(version_[-_\w]+)(\.html)?$ users/history/$1.html [L,R=301]
|
|
RewriteRule ^users/news/(version_\d+)\.(\d+)\.(\d+)$ users/history/$1_$2_$3.html [L,R=301]
|
|
RewriteRule ^users/download/(version_[-_\w]+)(\.html)?$ users/history/$1.html [L,R=301]
|
|
RewriteRule ^users/news/([-_\w]+)$ users/news/$1.html [L,R=301]
|
|
RewriteRule ^users/download/([-_\w]+)$ users/download/$1.html [L,R=301]
|
|
RewriteRule ^users/history/([-_\w]+)$ users/history/$1.html [L,R=301]
|
|
|
|
########## Rewrite rules to support the regression test links from the old site.
|
|
|
|
#~ RewriteRule ^regression/(.+)\.cpp$ http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost/boost/$1.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup [R,L]
|
|
RewriteRule ^regression/developement(/.*) development/tests/trunk$1 [R=permanent,L]
|
|
RewriteRule ^regression/release(/.*) http://engineering.meta-comm.com/boost-regression/1_34_1$1 [R,L]
|
|
RewriteRule ^regression/trunk(/.*) development/tests/trunk$1 [R=permanent,L]
|
|
RewriteRule ^regression-logs/?$ development/testing.html [R=permanent,L]
|
|
|
|
########## Shorter names for URL that must be printed during build process
|
|
|
|
RewriteRule ^getting_started_unix.html doc/libs/release/more/getting_started/unix-variants.html
|
|
RewriteRule ^getting_starged_windows.html doc/libs/release/more/getting_started/windows.html
|
|
|
|
########## Rewrite old site links to new locations.
|
|
|
|
# The boost header subdir, goes to the docs. Note, mod_rewrite is broken in some
|
|
# Apache versions. So we have to handle a rather strange translation of boost.png
|
|
# as a dir because it's somehow hardwired to replace /boost/* with /boost.png/*
|
|
# before *any* rewrite rules are checked. Which is just nasty!!
|
|
RewriteRule ^boost([.]png)?/(.*) doc/libs/release/boost/$2 [R=permanent,L]
|
|
# The libs subdirs
|
|
RewriteRule ^libs/([^./]+)$ doc/libs/release/libs/$1/ [R=permanent,L]
|
|
RewriteRule ^libs(/.*)?$ doc/libs/release/libs$1 [R=permanent,L]
|
|
# The people pages
|
|
RewriteRule ^people/people.htm users/people.html [R=permanent,L]
|
|
RewriteRule ^people/?$ users/people.html [R=permanent,L]
|
|
RewriteRule ^people/([^.]+) users/people/$1.html [R=permanent,L]
|
|
# The status pages, all go to the testing intro
|
|
RewriteRule ^status(.*) development/testing.html [R=permanent,L]
|
|
# The tools pages (todo)
|
|
RewriteRule ^tools(/.*)?$ doc/tools$1 [R=permanent,L]
|
|
# The wiki
|
|
RewriteRule ^wiki/?$ https://svn.boost.org/trac10/wiki [R,L]
|
|
# The license file. (This link was never correct, but it's common enough to require a redirect).
|
|
RewriteRule ^LICENSE-1.0$ LICENSE_1_0.txt [R=permanent,L]
|
|
|
|
########## Other redirects
|
|
RewriteRule ^b2(/.*)?$ https://boostorg.github.io/build$1 [R=permanent,L]
|
|
RewriteRule ^build(/.*)?$ https://boostorg.github.io/build$1 [R=permanent,L]
|
|
|
|
########## Hide dot files/directories and stop directory listings.
|
|
########## Everything's available on github anyway, but just in case.
|
|
RewriteRule ^[.] "-" [F,L]
|
|
RewriteRule /[.] "-" [F,L]
|
|
Options -Indexes
|