If the exact requested url exists lighttpd will serve this file and
the request will not go to the rails application ( this is how
caches_page works as well ).
So as long as you have php setup to work on your lighttpd installation
you should be able to just drop .php files into public.
Make sure you compile php (not mod_php) with fastcgi support
fastcgi.server = ( ".php" =>
( "localhost" =>
( "socket" =>
"/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"min-procs" => 1,
"max-procs" => 4,
"idle-timeout" => 300
)
)
)
On 5/26/05, Ezra Zygmuntowicz
<ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org>
wrote:> Hey folks-
> I''ve got a nagging question over here. I''ve got a
few rails apps
> running our intranet here at the newspaper that I work at and I am in
> the process of redesigning and moving the main site to rails. A
> question has come up from a few of the other developers here. I''m
> running my rails apps on lighttpd and I would like to know if anyone
> has figured out how to serve php pages out of the RAILS_ROOT/public
> directory in a lighttpd rails app? I know, I know this list is about
> ruby and rails, but it might help some people adopt the technology
> faster if php developers can still hack out a few pages that would get
> served out of public/. Any ideas, or anyone got this working yet?
> Thanks in advance!
>
> -Ezra Zygmuntowicz
> Yakima Herald-Republic
> WebMaster
> 509-577-7732
> ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
--
Tobi
http://www.snowdevil.ca - Snowboards that don''t suck
http://typo.leetsoft.com - Open source weblog engine
http://blog.leetsoft.com - Technical weblog