Excluding static directories in Drupal's root

Events happening in the community are now at Drupal community events on www.drupal.org.
asb's picture

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

Garrett Albright's picture

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 = ( … )
}

Different approach

asb's picture

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 /docs directory through SVN or SCP). And the best part is: It works smoothly with Lighty ;)

Greetings, -asb

I see. Sorry for the slow

Garrett Albright's picture

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.

Lighttpd

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: