On Jan 11, 1:13 pm, Michael Hipp <[EMAIL PROTECTED]> wrote:
> Graham Dumpleton wrote:
> > On Jan 11, 8:50 am, Michael Hipp <[EMAIL PROTECTED]> wrote:
> >> Hello,
>
> >> My "main" Django site is working great. But on my shared hosting account
> >> (HostMonster) I have multiple sites. Some will be Django, some will be
> >> plain html.
>
> >> How do I set this up (specifically in settings.py, urls.py and .htaccess).
>
> >> I'm using FastCGI and a script for the main site. I only have access to
> >> .htaccess.
>
> >> Currently the html sub-pages work fine on the other sites, but not the
> >> main page. Apache logs this:
>
> >> [Thu Jan 10 14:37:21 2008] [error] [client 98.134.179.175] Request
> >> exceeded the limit of 10 internal redirects due to probable
> >> configuration error. Use 'LimitInternalRecursion' to increase the limit
> >> if necessary. Use 'LogLevel debug' to get a backtrace.
>
> >> Can someone help me get started down the right path on this?
>
> > Looks like your rewrite rule for making a .fcgi script appear as being
> > mounted at root of site is not correct. Post your complete .htaccess
> > file showing all parts of the directives related to rewrite rule.
>
> It's pretty much verbatim from the Django docs, but I don't know if such was
> intended for multi-site installations:
>
> AddHandler fcgid-script .fcgi
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ redmule.fcgi/$1 [QSA,PT,L]

What happens if you replace the last line with:

  RewriteRule ^(.*)$ /some/url/redmule.fcgi/$1 [QSA,PT,L]

Where '/some/url/redmule.fcgi' is actually the real URL that you would
use to access that fcgi script directly if you were doing it from the
browser (excluding the http://host bit of course).

I have seen problems where using just the basename of the .fcgi script
in a .htaccess file doesn't work and full URL is required instead.

Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to