Skip to content

Instantly share code, notes, and snippets.

@jakab922
Created September 21, 2011 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakab922/1231889 to your computer and use it in GitHub Desktop.
Save jakab922/1231889 to your computer and use it in GitHub Desktop.
My lighttpd configuration
server.document-root = "/var/www/sites/test_project/"
server.modules = ("mod_rewrite", "mod_access", "mod_fastcgi", "mod_accesslog", "mod_alias")
accesslog.filename = "/var/log/lighttpd.log"
fastcgi.server = (
"testsite.fcgi" => (
"main" => (
"host" => "127.0.0.1",
"port" => 8080,
)
)
)
alias.url = (
"/media" => "/var/www/sites/test_project/media/",
"/static" => "/var/www/sites/test_project/static/",
)
url.rewrite-once = (
"^/media(.*)$" => "$1",
"^/static(.*)$" => "$1",
"^(.*)$" => "testsite.fcgi$1",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment