Changes between Version 13 and Version 14 of OsxFcgi


Ignore:
Timestamp:
03/13/2006 05:11:31 PM (9 years ago)
Author:
radek
Comment:

added media settings

Legend:

Unmodified
Added
Removed
Modified
  • OsxFcgi

    v13 v14  
    8080    DocumentRoot /Library/WebServer/Documents/
    8181    RewriteEngine On
    82     RewriteRule ^(/admin.*)$ /django.fcgi$1 [L]
    83     RewriteRule ^(/myapp.*)$ /django.fcgi$1 [L]
     82    RewriteRule ^(/m/.*)$ $1 [L] # for custom media
     83    RewriteRule ^(/media.*)$ $1 [L] # for admin media   
     84    RewriteRule ^(/.*\.)(jpg|gif|png|ico)$ $1$2 [L] # some other media (mostly "accidentaly" in the root)
     85    RewriteRule ^(/admin.*)$ /django.fcgi$1 [L] # admin application
     86    RewriteRule ^(/myapp.*)$ /django.fcgi$1 [L] # your own application
     87    RewriteRule ^(/.*)$ /django.fcgi$1 [L] # the rest of django (only if needed from the web root)
    8488</VirtualHost>
    8589}}}
Back to Top