Re: Server-Sent Events

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

No change, still blank page. It does not try to execute the script.

Here is my configuration:

root@raspberrypi:/home/pi# ls -lR apps/ 
apps/: 
total 4 
drwxrwxrwx 4 pi pi 4096 mai   18 12:59 lighttpd 
 
apps/lighttpd: 
total 8 
drwxrwxrwx 5 pi pi 4096 mai   18 13:00 base 
drwxrwxrwx 2 pi pi 4096 mai   18 13:16 running 
 
apps/lighttpd/base: 
total 12 
drwxrwxrwx 2 pi pi 4096 mai   18 13:00 status 
drwxrwxrwx 2 pi pi 4096 mai   18 13:00 uploads 
drwxrwxrwx 2 pi pi 4096 mai   18 13:09 www 
 
apps/lighttpd/base/status: 
total 0 
 
apps/lighttpd/base/uploads: 
total 0 
 
apps/lighttpd/base/www: 
total 8 
-rwxrwxrwx 1 root root 935 mai   12 16:02 sse.ex 
-rwxrwxrwx 1 root root 294 mai   12 16:01 sse.html 
 
apps/lighttpd/running: 
total 0 
root@raspberrypi:/home/pi# cat ./config/lighttpd.conf  
server.modules = (  
  "mod_cgi",  
  "mod_simple_vhost"  
)  
server.document-root = "/home/pi/apps/lighttpd/base/www/"  
server.port = 80  
server.bind = "127.0.0.1"  
server.pid-file = "/home/pi/apps/lighttpd/running/server.pid"  
server.errorfile-prefix = "/home/pi/apps/lighttpd/base/status/status-"  
server.upload-dirs = ( "/home/pi/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.exu",  
  "index.pl",  
  "index.cgi",  
  "index.sh",  
)  
  
simple-vhost.server-root = "/home/pi/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"  => "/usr/local/euphoria-4.1.0-RaspberryPi/bin/eui",   
  ".exu"  => "/usr/local/euphoria-4.1.0-RaspberryPi/bin/eui",   
#-- Shrouded Euphoria scripts as CGI, runs faster:    
  ".il"  => "/usr/local/euphoria-4.1.0-RaspberryPi/bin/eub",   
  ".pl"  => "/usr/bin/perl",  
  ".cgi" => "",  
) root@raspberrypi:/home/pi# lighttpd -f ./config/lighttpd.conf -D 
2017-05-18 13:19:23: (log.c.164) server started  
2017-05-18 13:19:23: (server.c.1045) WARNING: unknown config-key: url.access-deny (ignored)  

If I point directly to http://localhost/sse.ex, I can see an error in apps/lighttpd/base/www:

/home/pi/apps/lighttpd/base/www/sse.ex:1 
<0052>:: can't find 'std/datetime.e' in any of ... 
	/home/pi/apps/lighttpd/base/www 
	/home/pi/apps/lighttpd/base/www/sse.ex 
 
include std/datetime.e  
                       ^ 

EUDIR is declared for root and for the user account (pi).

Jean-Marc

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

Search



Quick Links

User menu

Not signed in.

Misc Menu