daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static = Dir(base='html/', index_file='index.html',
  2.                              default_ctype='text/plain')
  3.  
  4. python = Handler(send_spec='tcp://127.0.0.1:9996',
  5.                  recv_spec='tcp://127.0.0.1:9997',
  6.                  send_ident='82209006-86FF-4982-B5EA-D1E29E55D481',
  7.                  recv_ident='')
  8.  
  9. main = Server(
  10.     uuid="f400bf85-4538-4f7a-8908-67e313d515c2",
  11.     access_log="/run/access.log",
  12.     error_log="/run/error.log",
  13.     chroot="./",
  14.     default_host="localhost",
  15.     name="test",
  16.     pid_file="/run/mongrel2.pid",
  17.     port=6767,
  18.     hosts = [
  19.         Host(name="localhost", routes={
  20.             '/html': static,
  21.             '/piper': python
  22.  
  23.         })
  24.     ]
  25. )
  26.  
  27. servers = [main]
RAW Paste Data
Top