Recent Posts
Java | 34 sec ago
None | 56 sec ago
None | 1 min ago
None | 1 min ago
C# | 1 min ago
None | 1 min ago
None | 1 min ago
XML | 2 min ago
Python | 2 min ago
ASP | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By danny on the 9th of Feb 2010 08:53:02 PM Download | Raw | Embed | Report
  1. lighttpd.conf
  2. -------------------------
  3. server.modules              = (
  4.             "mod_access",
  5.             "mod_fastcgi",
  6.             "mod_alias",
  7.             "mod_rewrite",
  8.             "mod_accesslog",
  9.             "mod_compress",
  10. )
  11. server.document-root       = "/var/www"
  12. server.username = "lighttpd"
  13. fastcgi.server = ( "/code.py" =>
  14.     ((
  15.    "socket" => "/tmp/fastcgi.socket",
  16.    "bin-path" => "/var/www/code.py",
  17.    "max-procs" => 1,
  18.    "bin-environment" => (
  19.      "REAL_SCRIPT_NAME" => ""
  20.    ),
  21.    "check-local" => "disable"
  22.     ))
  23. )
  24.  
  25. ---------------------------
  26. conf-available/10-fastcgi.conf
  27.  
  28. server.modules   += ( "mod_fastcgi" )
  29. server.modules   += ( "mod_rewrite" )
  30.  
  31. fastcgi.server = ( "/code.py" =>
  32.  (( "socket" => "/tmp/fastcgi.socket",
  33.     "bin-path" => "/var/www/code.py",
  34.     "max-procs" => 1,
  35.    "bin-environment" => (
  36.      "REAL_SCRIPT_NAME" => ""
  37.    ),
  38.    "check-local" => "disable"
  39.  ))
  40.  )
  41.  
  42. url.rewrite-once = (
  43.    "^/favicon.ico$" => "/static/favicon.ico",
  44.    "^/static/(.*)$" => "/static/$1",
  45.    "^/(.*)$" => "/code.py/$1",
  46.  )
  47.  
  48. ---------------------------
  49. ----------------------------
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: