-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
50 lines (39 loc) · 2.06 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
mod_cdn: cdn-ify a website
Kris Beevers <[email protected]>
http://agile.internap.com/mod-cdn
Overview
----------------------------------------------------------------------
mod_cdn is an apache2 module developed at Voxel dot Net that makes
VoxCAST and other CDNs easier to use by automatically "CDNifying" some
HTML content and "originifying" the origin apache server to send
proper headers, validate authentication tokens, etc. mod_cdn is meant
to be installed and configured on a CDN customer's origin server.
Some parts of mod_cdn are based on code from mod_proxy_html
(http://apache.webthing.com/mod_proxy_html/).
In addition to apache2, mod_cdn currently requires libxml2 to be
installed.
Features
----------------------------------------------------------------------
mod_cdn currently has the following features:
* Find links to content (e.g. img src tags) in HTML and rewrite the
URLs to point to a different server (e.g., a VoxCAST host)
* Automatically add authentication token query string
arguments to links in HTML that are being CDNified
* Automatically add query string ignore tokens in the query strings of
URLs being CDNified, relative to some other query string argument
* Add proper Expires headers to static content for which the server is
the CDN origin
* Add "Vox-Authorization: required" headers to static content for
which the server is the CDN origin, and which requires
authentication
* Verify the authentication tokens in query string arguments of static
content requests for which the server is the CDN origin
Most sites probably don't need all of these features; they can each be
turned on and off and configured at a fairly high granularity.
A major coming-soon feature is dynamic threshold based switching
between CDN and non-CDN that takes into account server load metrics.
Documentation
----------------------------------------------------------------------
Some documentation for mod_cdn is available in the accompanying MANUAL
file or at http://agile.internap.com/mod-cdn. This includes
documentation about installing and configuring the module.