Re: Server-Sent Events

new topic     » goto parent     » topic index » view thread      » older message » newer message

I'm using Lighttpd and running Euphoria scripts as CGI.

To put it to work: lighttpd -f ./config/lighttpd-something.conf -D

Example configuration (save it as lighttpd-something.conf):

server.modules = ( 
  "mod_cgi", 
  "mod_simple_vhost" 
) 
server.document-root = "/home/aceduardo/apps/lighttpd/base/www/" 
server.port = 8080 
server.bind = "127.0.0.1" 
server.pid-file = "/home/aceduardo/apps/lighttpd/running/server.pid" 
server.errorfile-prefix = "/home/aceduardo/apps/lighttpd/base/status/status-" 
server.upload-dirs = ( "/home/aceduardo/apps/lighttpd/base/uploads/" ) 
 
server.network-backend = "linux-sendfile" 
server.follow-symlink = "enable" 
 
dir-listing.activate = "enable" 
dir-listing.encoding = "utf-8" 
 
index-file.names = ( 
  "index.xhtml", 
  "index.html", 
  "index.xml", 
  "index.il", 
  "index.ex", 
  "index.pl", 
  "index.cgi", 
  "index.sh", 
) 
 
simple-vhost.server-root = "/home/aceduardo/apps/lighttpd/base/" 
simple-vhost.default-host = "www" 
simple-vhost.document-root = "public" 
 
url.access-deny = ( "~", ".inc", ".cfg", ".err", ".log", ".e" ) 
 
cgi.assign = ( 
  ".sh"  => "/bin/sh", 
#-- Most relevant line: 
  ".ex"  => "/home/aceduardo/apps/euphoria41/bin/eui",  
#-- Shrouded Euphoria scripts as CGI, runs faster:   
  ".il"  => "/home/aceduardo/apps/euphoria41/bin/eub",  
  ".pl"  => "/usr/bin/perl", 
  ".cgi" => "", 
) 
 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu