Trailing Slash Issues


#1

Hello,

I’m using Lighttpd and I am having problems with links like this:

http://mydomain.com/controller

If I do not add the trailing slash it downloads the dispatch,fcgi as a
file.

Here is the lighttpd.conf

Server Main Config

#include “lighttpd-inc.conf”

server.modules = (“mod_rewrite”, “mod_accesslog”, “mod_fastcgi”)

server.port = 8900

server.username = “lighttpd”
server.groupname = “web”

server.pid-file = “/var/run/lighttpd.pid”

accesslog.filename = “/var/log/lighttpd/access_log”
server.errorlog = “/var/log/lighttpd/error_log”

server.indexfiles = ( “dispatch.fcgi”, “index.html”, “index.htm” )
url.rewrite = ( “^/$” => “index.html”, “^([^.]+)$” => “$1.html” )

server.document-root = “/u1/phone/public/”

server.error-handler-404 = “/dispatch.fcgi”

fastcgi.server = ( “.fcgi” =>
( “localhost” =>
( “min-procs” => 1,
“max-procs” => 1,
“socket” => “/tmp/apps.fcgi.socket”,
“bin-path” => “/u1/phone/public/dispatch.fcgi”,
“bin-environment” => ( “RAILS_ENV” => “development” )
)
)
)

Thanks,
phill