You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ovar <0v...@centrum.cz> on 2005/04/28 21:41:07 UTC

[users@httpd] apache2 REQUEST_FILENAME

Hi,

I'm not really a C expert, so I need a little help.

The documentation for apache on some places mentions server variable REQUEST_FILENAME. I was trying to print it out with my PHP script, but it looks like it's always empty. On the other hand, REQUEST_URI gives me what I expect. I was grepping a little in httpd-2.0.54 sources and found no place wher REQUEST_FILENAME is set (grep -r REQUEST_FILENAME *). REQUEST_URI seems to be set here (I'm not sure, I really don't code C (-: ):

server/util_script.c:    apr_table_setn(e, "REQUEST_URI", original_uri(r));

So do you know where I can find and fix(?) the mechanism of setting REQUEST_FILENAME (on my Linux server with PHP module 4.3.11 probably broken)?

Thanks!

Ovar


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache2 REQUEST_FILENAME

Posted by Joshua Slive <js...@gmail.com>.
On 4/28/05, ovar <0v...@centrum.cz> wrote:
> Hi,
> 
> I'm not really a C expert, so I need a little help.
> 
> The documentation for apache on some places mentions server variable REQUEST_FILENAME. I was trying to print it out with my PHP script, but it looks like it's always empty. On the other hand, REQUEST_URI gives me what I expect. I was grepping a little in httpd-2.0.54 sources and found no place wher REQUEST_FILENAME is set (grep -r REQUEST_FILENAME *). REQUEST_URI seems to be set here (I'm not sure, I really don't code C (-: ):
> 
> server/util_script.c:    apr_table_setn(e, "REQUEST_URI", original_uri(r));
> 
> So do you know where I can find and fix(?) the mechanism of setting REQUEST_FILENAME (on my Linux server with PHP module 4.3.11 probably broken)?

If I remember correctly, REQUEST_FILENAME is set only by mod_rewrite, so
RewriteEngine On
will probably activate it.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org