I understand this a little better now, and would make the following
changes:

1) Since the TG on dreamhost doc says it's not a good idea to have your
TG app in the webfolder, I moved mine to TGapps.  All that changes is a
line in tg_fastcgi.fcgi.

2) static files can remain in webfolder/static, or move elsewhere to be
less easily accessible to wanderers, just make sure static setting in
config.py/dev.cfg/prod.cfg/whatever is correct.

3) only one .htaccess file is necessary, and it goes in the webfolder.
I've updated it to read:

RewriteEngine   On
RewriteRule     !^stat                           -
 [C]
RewriteRule     ^(tg_fastcgi\.fcgi/.*)$     -                       [L]
RewriteRule     !^stat                           -
 [C]
RewriteRule     ^(.*)$                           tg_fastcgi.fcgi/$1
 [L]

This way, the analog stats are also still accessible, as well as the
static folder being served by apache, if it is in the webfolder.

Let me know how this works for you, if you use it.

Reply via email to