Project

General

Profile

Pastebin com » History » Revision 2

Revision 1 (digitalspaghetti, 2008-06-15 20:47) → Revision 2/5 (hoffie, 2008-06-15 20:56)

 

 == Pastebin.com Pastebin Config == 

 This configuration is an easy way to set up a nopaste using the [http://pastebin.com Pastebin.com] pastebin application. 

 {{{ 
 $HTTP["host"] =~ "(^|\.)pastebin.example\.com$" { 
   server.document-root = "/path/tp/pastebin/public_html" 
   accesslog.filename = "/var/log/lighttpd/pastebin.access.log" 
   static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) 
   fastcgi.server = ( 
     ".php" => ( 
       "localhost" => ( 
         "bin-path" => "/usr/local/bin/php-cgi", 
         "socket" => "/tmp/php-pastebin.socket", 
         "min-procs" => 1, 
         "max-procs" => 2, 
         "bin-copy-environment" => ( 
           "PATH", "SHELL", "USER" 
         ) 
       ) 
     ) 
   ) 
   compress.cache-dir = "/var/www/cache/pastebin/" 
   url.rewrite-once = ( 
		 "^/pastebin\.(css|js)" "^/pastebin.css" => "$0", 
		 "^/diff/(.*)" "^/pastebin.js" => "$0", 
		 "^/diff/(\.*)" => "/pastebin.php?diff=$1", 
		 "^/dl/(.*)" "^/dl/(\.*)" => "/pastebin.php?dl=$1", 
		 "^/(.*)" 
     "^/(\.*)" => "/pastebin.php?show=$1" 
   ) 
 } 
 }}}