According to Steve Greenland <steveg moregruel.net>:
>
> I've got a website whose root is wordpress, running via
fastcgi php, no
> problem.
>
> Now I'd like to add Django at a few URLs, but not
interfere with the
> rest of the site. In particular, I'd like any URL
beginning with
> "/feedme/" or "/admin/" to run via
Django.
Ah, you need a rewrite rule to create the extra element in
the URL, so
that fastcgi can strip it off. Whee!
Here's the complete recipie:
url.rewrite-once = (
"^/(feedme.*)" =>
"/django/$1",
"^/(admin.*)" =>
"/django/$1",
)
$HTTP["url"] =~ "^/django/" {
fastcgi.server = ( "/django" => ((
"socket" =>
"/var/run/django/www_fcgi.sock",
"check-local" =>
"disable",
))
)
}
Note that the lack of a trailing "/" in the
fastcgi prefix is important.
Regards,
Steve
--
Steve Greenland
The irony is that Bill Gates claims to be making a
stable operating
system and Linus Torvalds claims to be trying to take
over the
world. -- seen on the net
|