the current release is 0.3.
mod_proxy_http
, or something like lighttpd or nginx.
/branches/0.3
) from svn.
config.py.example
to config.py
and edit it.
bootstrap.py
is executable.
63331
.
static/
and uploaded_files/
from the checkout dir to the web document-root for your chosen domain.
localhost:63331
...
mod_proxy_http
, and create a .htaccess
in web root containing:
RewriteEngine On RewriteRule ^(robots\.txt|favicon\.ico)$ /static/$1 [QSA,L] RewriteCond %{REQUEST_URI} !^/(static|uploaded_files) RewriteRule ^(.*)$ http://localhost:63331/$1 [QSA,P,L]
mod_proxy
, and add something like this to your config:
$HTTP["host"] == "img2.website.com" { server.document-root =$HTTP["url"] =~ "^/(?!static|uploaded_files|favicon\.ico|robots\.txt)" { proxy.server = ("/" => (( "host" => "127.0.0.1", "port" => 63331, )) ) } url.rewrite-once = ( "^/favicon\.ico$" => "/static/favicon.ico", "^/robots\.txt$" => "/static/robots.txt", ) server.max-request-size = 4096 $HTTP["url"] =~ "^/(uploaded_files|static)/" { expire.url = ( "" => "access 1 months" ) } }
chmod +x bootstrap.py
then start img2 listening on localhost:63331
with ./bootstrap.py 63331