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...
By danny on the 9th of Feb 2010 08:53:02 PM
Download |
Raw |
Embed |
Report
lighttpd.conf
-------------------------
server.modules = (
"mod_access",
"mod_fastcgi",
"mod_alias",
"mod_rewrite",
"mod_accesslog",
"mod_compress",
)
server.document-root = "/var/www"
server.username = "lighttpd"
fastcgi.server = ( "/code.py" =>
((
"socket" => "/tmp/fastcgi.socket",
"bin-path" => "/var/www/code.py",
"max-procs" => 1,
"bin-environment" => (
"REAL_SCRIPT_NAME" => ""
),
"check-local" => "disable"
))
)
---------------------------
conf-available/10-fastcgi.conf
server.modules += ( "mod_fastcgi" )
server.modules += ( "mod_rewrite" )
fastcgi.server = ( "/code.py" =>
(( "socket" => "/tmp/fastcgi.socket",
"bin-path" => "/var/www/code.py",
"max-procs" => 1,
"bin-environment" => (
"REAL_SCRIPT_NAME" => ""
),
"check-local" => "disable"
))
)
url.rewrite-once = (
"^/favicon.ico$" => "/static/favicon.ico",
"^/static/(.*)$" => "/static/$1",
"^/(.*)$" => "/code.py/$1",
)
---------------------------
----------------------------
Submit a correction or amendment below.
Make A New Post