Hi everyone -
I am running Rails on a Cent OS server that we access via remote. I
do not want to set
up a virtual server, rather have this server run on port 8080 so as
not to disturb Apache
running on port 80.
My config is below, but when I try to run a Rails app I get 404
errors. The initial Rails
screen comes up, but if I create a sample app in the directory below
I get 404 errors.
I am hoping it is something as simple as a path is wrong and my tired
eyes.
Thank you in advance!
-Scott
server.modules = (
“mod_rewrite”,
“mod_redirect”,
“mod_access”,
“mod_fastcgi”,
“mod_accesslog” )
server.document-root = “/home/rails/test/public/”
server.errorlog = “/var/log/lighttpd.error.log”
index-file.names = ( “index.html”,
“index.htm”, “default.htm” )
server.error-handler-404 = “/dispatch.fcgi”
#rails stuff
######fastcgi module
fastcgi.server = (
“.fcgi” => (
“test” => (
“socket” => “/tmp/test1.socket”,
“bin-path” => “/home/rails/test/public/dispatch.fcgi”,
“bin-environment” => ( “RAILS_ENV” => “production” ),
“min-procs” => 1,
“max_procs” => 2
)
)
)
accesslog module
accesslog.filename = “/var/log/lighttpd_access.log”
url.access-deny = ( “~”, “.inc” )
$HTTP[“url”] =~ “.pdf$” {
server.range-requests = “disable”
}
which extensions should not be handle via static-file transfer
.php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
static-file.exclude-extensions = ( “.php”, “.pl”, “.fcgi” )
bind to port (default: 80)
server.port = 8080