Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 19 and Version 20 of TurboGearsOnDreamHost


Ignore:
Timestamp:
03/13/06 10:03:17 (13 years ago)
Author:
msarahan@…
Comment:

refined .htaccess section

Legend:

Unmodified
Added
Removed
Modified
  • TurboGearsOnDreamHost

    v19 v20  
    216216RewriteBase / 
    217217RewriteRule ^(tg_fastcgi\.fcgi/.*)$ - [L] 
    218 RewriteRule !^stat - [C] 
    219218RewriteRule ^(.*)$ tg_fastcgi.fcgi/$1 [L] 
    220219}}} 
     
    223222These directives rewrite all of the incoming request URLs so that they are directed to the tg_fastcgi.fcgi code. 
    224223 
    225 For additional non-TG sub-directories of your website, you can add lines like this after the stat line, but before the final line: 
    226  
    227 {{{ 
    228 RewriteRule ^!(blog.*)$ - [C] 
    229 }}} 
    230  
    231 This is useful for referring to dreamhost apps such as Wordpress or Gallery that you may have as sub-dirs of the main site. 
     224For additional non-TG sub-directories of your website, you can add sections like this before the tg_fastcgi stuff: 
     225 
     226{{{ 
     227RewriteCond     %{REQUEST_URI}                  ^/stats/(.*)$           [OR] 
     228RewriteCond     %{REQUEST_URI}                  ^/failed_auth.html$ 
     229RewriteRule     ^.*$                            -                       [L] 
     230}}} 
     231 
     232Replace stats with whatever you have as a sub-dir.  This stats example fixes any problems with CherryPy trying to serve your stats folder.  This is useful for referring to dreamhost apps such as Wordpress or Gallery that you may have as sub-dirs of the main site. 
    232233 
    233234Make sure that the .htaccess file has the proper permissions set: