The regex looks fine, you need to stick this in your settings.py

FORCE_SCRIPT_NAME = '""

/ismail

On Fri, Sep 18, 2009 at 8:40 AM, blindrabb...@gmail.com
<blindrabb...@gmail.com> wrote:
>
> I'm been trying to get django work with lighttpd for a while. I
> finally got it working however there is a weird error. Whenever I go
> to a url, ankiResource.fcgi/ gets appended to the url. This causes
> loads of 404's =(
>
> I'm assuming this has something to do with my lighttpd setup, since it
> works perfectly on the development server. Heres the part of my
> lighttpd config:
>
> [code]
> $HTTP["host"] == "anki-resource.uk.to" {
>        server.document-root = "/home/bombpersons/sites/ankiResource/"
>        fastcgi.server = (
>                "/ankiResource.fcgi" => (
>                        "main" => (
>                                "host" => "127.0.0.1",
>                                "port" => 8080,
>                                "check-local" => "disable",
>                        )
>                ),
>        )
>
>        #alias.url = (
>        #       "/Media" => "/home/bombpersons/sites/ankiResource/
> Media/",
>        #)
>
>        url.rewrite-once = (
>                "^(/static.*)$" => "$1",
>                "^(/.*)$" => "/ankiResource.fcgi$1",
>        )
>
> }
> [/code]
>
> I have a feeling it's something to do with the regular expressions in
> url.rewrite-once. I don't really understand them and just copy and
> pasted so it may be something obvious...
>
> Sorry if this sort of question gets asked all the time =(
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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