[Instantrails-users] Apache Config Question
David Morton
mortonda at dgrmm.net
Wed Jun 7 00:02:25 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Axiom Dadak wrote:
> Hi everyone,
>
> I'm having a problem getting instant rails working well on apache.
>
> I created an alias that points to the apps' public directory and it
> works, but when I access my application it take a long long time. Over
> 3 minutes sometimes. But it does always work, just painfully slow. I
> think it has to do with scgi but I'm unsure how to speed it up.
A rails application usually expects to run as a virtual host, not as a
subdirectory, which is what an alias will do.
To make it work, you need to edit the .htaccess file to include the new path,
and maybe some other hacks. Something about a routing prefix....
Some links I turned up...
http://wiki.rubyonrails.com/rails/pages/HowToSetTheBaseURLsOfYourRailsApps
http://wiki.rubyonrails.com/rails/pages/HowtoDeployMoreThanOneRailsAppOnOneMachine
- --
David Morton
Maia Mailguard - http://www.maiamailguard.com
Morton Software Design and Consulting - http://www.dgrmm.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEhk/RUy30ODPkzl0RAhB5AKDPHbMlCxW0O1/MclYJhPpoM5H4PQCggqtq
gzBzoBrdob0Xae/ZqNeECl0=
=B0un
-----END PGP SIGNATURE-----
More information about the Instantrails-users
mailing list