Posted by asb on October 29, 2009 at 1:53am
Hi,
I'm trying to exclude a static directory in Drupal's root (called /docs) from being caught by Drupal. Currently I'm just getting a "page not found" error since there's no "/docs" page (error page).
Drupal is embedded into Lighty through "mod magnet" (magnet.attract-physical-path-to = ( "/etc/lighttpd/drupal.lua" ). Where is this to be configured, if it is possible at all with Drupal running on Lighttpd (Solution for Apache/mod_rewrite)?
Thanks & greetings, -asb
Comments
asb; I don't think I
asb;
I don't think I understand what you're asking for. Are you saying you don't want Drupal to execute on requests for the "docs" path?
One way would be to put an exclusion for that path before your fastcgi.server (or scgi.server) line which triggers PHP:
$HTTP["url"] !~ "^/docs" {fastcgi.server = ( … )
}
The Boise Drupal Guy!
Different approach
Hi Garrett,
thank you, I think your snippet is exactly what we were initially looking for.
However, in the meantime we found another solution - not excluding Drupal from handling the directory, but forcing it to handle it the way we need. That can be accomplished by the Filebrowser module wich allows to map a physical directory on the server to a Drupal node; the directories contents isn't handled by Drupal, but through the file system (so we can manage the
/docsdirectory through SVN or SCP). And the best part is: It works smoothly with Lighty ;)Greetings, -asb
I see. Sorry for the slow
I see. Sorry for the slow reply, but I don't seem to have received a notification when you created the thread. (GDO's notifications have never been as reliable ever since the D6 switchover…) Glad you found a solution regardless.
The Boise Drupal Guy!