hi !
I recently installed a gentoo with a lighttpd and redmine (ruby rails)s).
My problem is that I want to have a virtual host in lighttpd, that point to my fast-cgi ruby redmine for web url and another virtual host that point to the same redmine but inside my lan with the ip (it's quite faster).
the host with url works fine, from both inside and outside the lan, but i can't figure out a good config for ip-based virtual host.
here is my lighttpd.conf, if you have an idea.
vhost that is working :
Code:
$HTTP["host"] == "redmine.mydomain.com" {
server.document-root = "/var/www/redmine/public/"
alias.url = ()
server.indexfiles = ( "dispatch.fcgi" )
server.error-handler-404 = "/dispatch.fcgi"
url.rewrite-once = (
"^/(.*\..+(?!html))$" => "$0",
"^/(.*)\.(.*)" => "$0",
)
fastcgi.server = (
".fcgi" => ( "redmine" => (
"socket" => "/tmp/redmine.socket",
"bin-path" => "/usr/bin/ruby
/var/www/redmine/public/dispatch.fcgi",
"min-procs" => 1,
"max-procs" => 4,
"idle-timeout" => 120,
"check-local" => "disable",
"bin-environment" => ( "RAILS_ENV" => "production" ),
))
)
}
the virtual host for my ip is exactly the same, only the first line change :
but send me to 404.
Thanks for your help.