Re: Django 1.0 lighttpd FastCGI redirect issue

2008-09-16 Thread Anders Bergh

On Tue, Sep 16, 2008 at 10:25 AM, Wim Feijen <[EMAIL PROTECTED]> wrote:
>
> Hi Anders,
>
> For me, removing the slash in the FORCE_SCRIPT_NAME seemed to work. I
> am not using the admin interface, so I can't check on that.
>
> So I added to settings.py:
>
> FORCE_SCRIPT_NAME=""
>
> I totally agree that this change with great consequences for all
> lighttpd users is poorly documented.
>
> Best regards,
>
> Wim

Wow, I'm 100% sure I tried that, yet now it seems to work, including
the admin :) I must have messed with the lighttpd rewrite settings
while trying that the last time...

Thanks a lot!

-- 
Anders

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



Re: Django 1.0 lighttpd FastCGI redirect issue

2008-09-16 Thread Grigory Fateyev

Hello Wim Feijen!
On Tue, 16 Sep 2008 01:25:58 -0700 (PDT) you wrote:

> 
> Hi Anders,
> 
> For me, removing the slash in the FORCE_SCRIPT_NAME seemed to work. I
> am not using the admin interface, so I can't check on that.
> 
> So I added to settings.py:
> 
> FORCE_SCRIPT_NAME=""
> 
> I totally agree that this change with great consequences for all
> lighttpd users is poorly documented.
> 
> Best regards,

This is poorly documented for nginx users too. :)

-- 
Всего наилучшего! Григорий
greg [at] anastasia [dot] ru
Письмо отправлено: 2008/09/16 17:40

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



Re: Django 1.0 lighttpd FastCGI redirect issue

2008-09-16 Thread Wim Feijen

Hi Anders,

For me, removing the slash in the FORCE_SCRIPT_NAME seemed to work. I
am not using the admin interface, so I can't check on that.

So I added to settings.py:

FORCE_SCRIPT_NAME=""

I totally agree that this change with great consequences for all
lighttpd users is poorly documented.

Best regards,

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



Re: Django 1.0 lighttpd FastCGI redirect issue

2008-09-12 Thread Anders Bergh

On Sat, Sep 13, 2008 at 4:23 AM, Ramiro Morales <[EMAIL PROTECTED]> wrote:
> Have you tried what's suggested in
>
> http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#ChangedthewayURLpathsaredetermined
>
> (under the "lighttpd + fastcgi (and others)" sub-section)?
>

Ack, I was a little bit too quick on the reply button earlier. The
suggestion on that page doesn't work.

With FORCE_SCRIPT_NAME="/", trying to log into the admin makes Firefox
go to http://admin/, because the form looks like this:



I changed the lighttpd rewrite rule from ^(/.*)$ to ^/(.*)$, but that
didn't change anything. So I tried setting FORCE_SCRIPT_NAME to "",
but that didn't seem to fix anything...

Is it no longer possible to host Django sites using lighttpd?

> Regards,
>
> --
>  Ramiro Morales



-- 
Anders

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



Re: Django 1.0 lighttpd FastCGI redirect issue

2008-09-12 Thread Anders Bergh

On Sat, Sep 13, 2008 at 4:23 AM, Ramiro Morales <[EMAIL PROTECTED]> wrote:
> Have you tried what's suggested in
>
> http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#ChangedthewayURLpathsaredetermined
>
> (under the "lighttpd + fastcgi (and others)" sub-section)?
>

Thanks! I had missed that page. I'm assuming that all of the
documentation hasn't been updated yet since the 1.0 release.

> Regards,
>
> --
>  Ramiro Morales


-- 
Anders

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



Re: Django 1.0 lighttpd FastCGI redirect issue

2008-09-12 Thread Ramiro Morales

On Fri, Sep 12, 2008 at 9:33 PM, Anders Bergh <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm trying to host a Django 1.0 project on lighttpd 1.4.19 on Linux,
> following the lighttpd FastCGI in the Django documentation. However,
> it doesn't work, it seems to redirect to /mysite.fcgi for almost
> anything I do.
>
> Here's the config:
>
> $HTTP["host"] == "labs.lamepunch.org" {
>  fastcgi.server = (
>"/labs.fcgi" => (
>  "main" => (
>"socket" => "/srv/django/lamepunch/django.sock",
>"check-local" => "disable",
>  )
>),
>  )
>
>  alias.url = (
>"/media/" => 
> "/usr/lib/python2.5/site-packages/django/contrib/admin/media/",
>  )
>
>  url.rewrite-once = (
>"^(/media.*)$" => "$1",
>   "^(/.*)$" => "/labs.fcgi$1",
>  )
> }
>
>
> I run Django like so:
>
> ./manage.py runfcgi socket=django.sock pidfile=django.pid
>
> When I visit the site it gives me a 404:
>
> Page not found (404)
> Request Method: GET
> Request URL:http://labs.lamepunch.org/labs.fcgi/
>
> Trying to access the admin I get:
>
> The current URL, labs.fcgi/labs.fcgi/admin/, didn't match any of these.
>
> Any clues? I've been asking around on IRC and experimenting with the
> conf, but nothing has helped yet. I'm sure it worked prior to 1.0.
>

Have you tried what's suggested in

http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#ChangedthewayURLpathsaredetermined

(under the "lighttpd + fastcgi (and others)" sub-section)?

Regards,

-- 
 Ramiro Morales

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



Django 1.0 lighttpd FastCGI redirect issue

2008-09-12 Thread Anders Bergh

Hi,

I'm trying to host a Django 1.0 project on lighttpd 1.4.19 on Linux,
following the lighttpd FastCGI in the Django documentation. However,
it doesn't work, it seems to redirect to /mysite.fcgi for almost
anything I do.

Here's the config:

$HTTP["host"] == "labs.lamepunch.org" {
  fastcgi.server = (
"/labs.fcgi" => (
  "main" => (
"socket" => "/srv/django/lamepunch/django.sock",
"check-local" => "disable",
  )
),
  )

  alias.url = (
"/media/" => "/usr/lib/python2.5/site-packages/django/contrib/admin/media/",
  )

  url.rewrite-once = (
"^(/media.*)$" => "$1",
   "^(/.*)$" => "/labs.fcgi$1",
  )
}


I run Django like so:

./manage.py runfcgi socket=django.sock pidfile=django.pid

When I visit the site it gives me a 404:

Page not found (404)
Request Method: GET
Request URL:http://labs.lamepunch.org/labs.fcgi/

Trying to access the admin I get:

The current URL, labs.fcgi/labs.fcgi/admin/, didn't match any of these.

Any clues? I've been asking around on IRC and experimenting with the
conf, but nothing has helped yet. I'm sure it worked prior to 1.0.

Thanks for any help,
Anders

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