You are not logged in.

#1 2010-11-22 23:06:18

iosonofabio
Member
From: Australia
Registered: 2008-10-09
Posts: 105

local werc webserver

Dear all,

I'm trying to run a werc website locally on my machine, but it's not that easy. When I open http://localhost in a browser, I only get the source file index.md as a text file, instead of the full werc interface. I use lighttpd as a webserver. My /etc/lighttpd/lighttpd.conf looks as follows:

server.port             = 80
server.username         = "http"
server.groupname        = "http"
server.document-root    = "/usr/werc/sites/default.cat-v.org"
server.pid-file         = "/var/run/lighttpd/lighttpd.pid"
server.errorlog         = "/var/log/lighttpd/error.log"
server.modules          = ( "mod_cgi", "mod_alias", "mod_rewrite" )
index-file.names        = ( "index.md" )
alias.url               += ( "/werc.rc" => "/usr/werc/bin/werc.rc" ) # Here use the path to werc.rc in your system.
server.error-handler-404 = "/werc.rc"
cgi.assign              = ( ".rc" => "")
dir-listing.activate    = "disable"
mimetype.assign         = ( ".html" => "text/html", ".md" => "text/plain", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/png" )

I already say that, if I leave index-file.names = ( ), I get "The requested document at 'http://localhost/' doesn't exist", in a werc interface. Any suggestion?

Offline

Board footer

Powered by FluxBB