Friday, November 25, 2011

Let webfaction serve your static content

Create a static symbolic link application:
Name: web2py_static
App category: Symbolic link
App type: Symbolic link to static-only app
App doc: This creates a symlink from ~/webapps/ to the absolute path specified in the extra info field. 


Then in your website mount this at /static


Now requests to static files will be handled directly by webfaction and never reach your app.

No comments: