Project

General

Profile

help with lighttpd and hello examples

Added by trong tran over 12 years ago

Hi,

I am following exactly the steps at this link. But when I try: localhost/cgi-bin/hello - It said 404 - Not found.

http://geo2tag.org/index.php/Wt_installation

#################################################################################################################

I put the hello.wt at /var/www/cgi-bin/ folder.

#################################################################################################################

Here is my lighttpd.conf

server.modules = (

"mod_access",

"mod_alias",

"mod_compress",

"mod_redirect",

  1. "mod_fastcgi",
  2. "mod_rewrite",
    )

server.document-root = "/var/www"

server.upload-dirs = ( "/var/cache/lighttpd/uploads" )

server.errorlog = "/var/log/lighttpd/error.log"

server.pid-file = "/var/run/lighttpd.pid"

server.username = "www-data"

server.groupname = "www-data"

index-file.names = ( "index.php", "index.html",

"index.htm", "default.htm",

\" index.lighttpd.html\" )

url.access-deny = ( "~", ".inc" )

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

## Use ipv6 if available

#include_shell "/usr/share/lighttpd/use-ipv6.pl"

dir-listing.encoding = "utf-8"

server.dir-listing = "enable"

compress.cache-dir = "/var/cache/lighttpd/compress/"

compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" )

########################################################################################################################

Here is my: hello.conf in /etc/lighttpd/conf-enabled/hello.conf

fastcgi.server += ("/hello" =>

("hello" =>

("socket" => "/tmp/hello.socket",

"bin-path" => "/var/www/cgi-bin/hello.wt",

"max-procs" => 1,

"check-local" => "disable",

"bin-environment" => ("FOO" => "bar",

"LD_LIBRARY_PATH" => "/usr/local/lib")

)

)

)

#########################################################################################################################

I accessed like this: localhost/cgi-bin/hello <---404 - Not found

localhot/hello <---404 - Not found

Any ideas ?

Regards,

Trong


Replies (1)

RE: help with lighttpd and hello examples - Added by Koen Deforche over 11 years ago

Hey,

Your configuration looks okay. The 404 could mean that still lighttpd isn't configured well. Did you restart the server? Do you see something in the error log?

Regards,

koen

    (1-1/1)