Forum: Ruby on Rails SCGI and caching not right

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.
235c58ad566abb4c7979bc7033e9882c?d=identicon&s=25 mortonda (Guest)
on 2005-11-16 07:55
(Received via mailing list)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to the instruction in the wiki, SCGI is to be set up on a
subdirectory, such as scgi-bin, and then the routing rules map onto that
subdirectory.  Page caching then occurs as a conditional rewrite
depending on if
the file is present.  The catch then, as documented, is to double up on
every
route, to add the scgi-bin directory:

map.connect ':controller/:action/:id'
map.connect 'scgi-bin/:controller/:action/:id'

This seems to be not very DRY.

Using a directive like:

SCGIMount / 127.0.0.1:9999

makes it so that caching is never called, hence the /scgi-bin/ hack.

Is there a way to tell the map object to prepend sgci-bin/ to every
rule? (but
then it still needs a rule without, for pretty urls without the
scgi-bin)

Any ideas?


- --
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 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDetdFSIxC85HZHLMRAm/mAJ9RwG46DhJ0JWB1fvzbQ7RBBhBQywCfY+XW
wGI5NAZtcklaGvqxPs5bAXg=
=Xv1B
-----END PGP SIGNATURE-----
This topic is locked and can not be replied to.