List Info

Thread: Lighttpd + FCGI problems




Lighttpd + FCGI problems
user name
2006-11-22 14:48:55
Hi there,

i'm struggling to find the way to serve static files with
lighty on TD.

This is my lighttpd.conf:

server.document-root =
"/users/home/lorenzo/domains/liger.textdriven.com/web/p
ublic/"

url.rewrite = ( "^(/.*)$" =>
"/main.fcgi$1" )

Then in
/users/home/lorenzo/domains/liger.textdriven.com/web/public/
i've got 2 symlinks, one to the media folder (django's admin
stuff) and
one called site-media that links to the folder i have my own
site's
media files in.

I also tried enabling the follow symlinks option in Lighttpd
with no
results.

I must say that i've got also Apache in front of Lighttpd
doing some
mapping avoiding me to type in the port number to access my
site.
Something like everything that arrives on / forward to
"liger.textdriven.com:8257"

Still, if you visit liger.textdriven.com and try to fetch
http://liger.textdriven.com/site-media/wi
ndows/javascripts/prototype.js

you get a 404

How do i fix this?

Thanks,
Lorenzo


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Lighttpd + FCGI problems
user name
2006-11-23 14:47:47
Lorenzo,

You need:

url.rewrite = (
    "^(/static.*)$" => "$1",
   "^(/media.*)$" => "$1",
    "^(/.*)$" => "/main.fcgi$1",
  )

remember to add a line for each "static" directory
you need before the
rewrite to main.fcgi

best,

Alan


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Lighttpd + FCGI problems
user name
2006-11-23 20:51:30

alanboycegmail.com wrote:
> Lorenzo,
>
> You need:
>
> url.rewrite = (
>     "^(/static.*)$" => "$1",
>    "^(/media.*)$" => "$1",
>     "^(/.*)$" => "/main.fcgi$1",
>   )
>
> remember to add a line for each "static"
directory you need before the
> rewrite to main.fcgi

Thanks man, that did it!

Lorenzo


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )