You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@worldgate.com> on 1998/02/16 05:31:00 UTC

way to get module to output w/o any filesystem interaction?

  7474 httpd    CALL  stat(0x70974,0x6b398)
  7474 httpd    NAMI  "/usr/local/etc/httpd/htdocs/webbench"
  7474 httpd    RET   stat -1 errno 2 No such file or directory
  7474 httpd    CALL  stat(0x70974,0x6b398)
  7474 httpd    NAMI  "/usr/local/etc/httpd/htdocs"
  7474 httpd    RET   stat 0


If I have a Location directive with a SetHandler in to direct requests to
a module, you still get the above.  Any other way of invoking a module so
it doesn't even think about the filesystem?


Re: way to get module to output w/o any filesystem interaction?

Posted by Dean Gaudet <dg...@arctic.org>.
No.  Not in 1.2 that I know of.  I had to tweak get_path_info() in 1.3 to
get rid of that.  Modules which set r->finfo.st_mode != 0 are assumed to
have dealt with the path_info and have put valid data in r->finfo.

Although you may get away with it if you make r->filename[0] != '/' ... 
look at directory_walk(). 

Dean

On Sun, 15 Feb 1998, Marc Slemko wrote:

>   7474 httpd    CALL  stat(0x70974,0x6b398)
>   7474 httpd    NAMI  "/usr/local/etc/httpd/htdocs/webbench"
>   7474 httpd    RET   stat -1 errno 2 No such file or directory
>   7474 httpd    CALL  stat(0x70974,0x6b398)
>   7474 httpd    NAMI  "/usr/local/etc/httpd/htdocs"
>   7474 httpd    RET   stat 0
> 
> 
> If I have a Location directive with a SetHandler in to direct requests to
> a module, you still get the above.  Any other way of invoking a module so
> it doesn't even think about the filesystem?
> 
>