Thanks That fixed it :)

On Oct 14, 9:52 am, justquick <justqu...@gmail.com> wrote:
> I have lighty setup for several of my projects using fastcgi and to
> make them work, i had to set
>
> FORCE_SCRIPT_NAME = ''
>
> instead of
>
> FORCE_SCRIPT_NAME = '/'
>
> give that a try and see if {% url %} et al are still working
>
> On Oct 14, 11:22 am, "Mark (Nosrednakram)" <nosrednak...@gmail.com>
> wrote:
>
> > Hello All,
>
> > I setup lighttpd and fastcgi the other day and everything seemed good
> > until I tried to log into admin.  It posts to "//admin" which in the
> > browser is http:///admin without a host.  I believe this is due to
> > adding FORCE_SCRIPT_NAME="/" in my setting file which was required to
> > make {% url %} and reverse work I believe.  Is there a fix I haven't
> > found?  my lighttpd.conf with [CAPS] placeholders.  Any thoughts on
> > where to look?
>
> > server.modules              = ( "mod_rewrite",
> >                                 "mod_redirect",
> >                                 "mod_fastcgi",
> >                                 "mod_alias",
> >                                 "mod_access",
> >                                 "mod_accesslog" )
>
> > server.errorlog             = "/opt/django/fastcgi/error.log"
> > accesslog.filename          = "/opt/django/fastcgi/access.log"
>
> > server.document-root       = "/opt/django/html/"
> > server.port                = 8080
>
> > mimetype.assign             = (
> >   ".pdf"          =>      "application/pdf",
> >   ".jpg"          =>      "image/jpeg",
> >   ".jpeg"         =>      "image/jpeg",
> >   ".png"          =>      "image/png",
> >   ".js"           =>      "text/javascript",
> >   ".css"          =>      "text/css",
> >   ".html"         =>      "text/html",
> >   ".htm"          =>      "text/html",
> >   ".gif"          =>      "image/gif",
> >   ""              =>      "application/octet-stream",
> >  )
>
> > $HTTP["url"] =~ "^/media($|/)" {
> >      dir-listing.activate = "enable"
> >    }
>
> > $HTTP["host"] == "[HOSTNAME]" {
> >   url.redirect = ( "^/(.*)" => "http://[SERVER]/$1"; )}
>
> > $HTTP["host"] == "[SERVER]" {
>
> >     fastcgi.server = (
> >         "/mysite.fcgi" => (
> >             "main" => (
> >                 "socket" => "/opt/django/fastcgi/[SERVER].socket",
> >                 "check-local" => "disable",
> >             )
> >         )
> >     )
> >     alias.url = (
> >         "/media" => "/opt/django/[PROJECT]/site_media/",
> >     )
>
> >     url.rewrite-once = (
> >         "^(/media.*)$" => "$1",
> >         "^(/.*)$" => "/mysite.fcgi$1"
> >     )
>
> > }
>
> > Thank you,
> > Mark
--~--~---------~--~----~------------~-------~--~----~
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