Forum: Ruby on Rails Trailing Slash Issues

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Phillip Novess (Guest)
on 2006-04-17 22:17
(Received via mailing list)
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
This topic is locked and can not be replied to.