Graham Dumpleton kirjoitti:
> 
> 
> On Oct 15, 5:14 am, Jani Tiainen <rede...@gmail.com> wrote:
>> Chris Withers kirjoitti:
>>> Hi All,
>>> I need to host my django project from /some/folder in my apache instance.
>>> I have the following:
>>> WSGIScriptAlias /some/folder /path/to/django.wsgi
>>> Does this now mean I have to prefix all my entries in urls.py with
>>> /some/folder?
>>> I hope not, but give that going to:
>>> http://myserver/some/folder
>>> ...gives me a 404 unless I do, I'm not hopeful.
>>> What am I doing wrong?
>> "nothing".
>>
>> Term is called "suburl deployment" and I've done it (for testing purposes).
>>
>> Apache config:
>>
>> RewriteEngine On
>>
>> #add missing trailing slash if needed
>> RewriteRule    ^/<suburl>$  /<suburl>/  [R]
> 
> This rewrite rule should not be required for things to work.

I needed it because if it was missing before call entered in Django 
login stuff, return URL was emtpy ("") and it didn't resolved correctly.

There is something a bit fishy in login part (when accessing 
http://example.invalid/mysite/someurl) it didn't worked correctly.

Also I do not know why I was required to set "LOGIN_URL" to absolute 
path... (Or could there have been some alternative way to do that)

-- 
Jani Tiainen

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to