Hi,

> Interesting, I've changed my fcgi script to prefork, and updated the
> lighttpd conf to have the edternal IP address of the machine and now
> I'm getting a  403 - Forbidden error when I go to the site URL.
> I think one area of confusion (for me) is how and when to start
> Django's fcgi process.

You start it one of two ways:

- Let lighttpd spawn it for you using the "bin-path" parameter. From
your first post, this is what you were originally using.

- Start the FCGI process manually or through a script that's
independent of lighttpd. That's the "python manage.py runfcgi"
command...

> Currently what I'm doing is starting lighttpd (/etc/init.d/lighttpd
> restatr) then starting Django's FCGI process as follows:
> $ python manage.py runfcgi protocol=fcgi host=78.110.163.145 port=3303

You need to listen on host=127.0.0.1 since that's where your
lighttpd.conf is sending FCGI requests. Also, since you don't need
Lighttpd to spawn your FCGI process, in lighttpd.conf, remove the bin-
path, max-procs, etc. and leave only the host, port, and check-local
parameters.

Since you're running your FCGI listener process on the same server as
your lighttpd, you should communicate via the internal loopback IP
address 127.0.0.1.

-Rajesh

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