Hi,
would be nice to have the SERVER_ROOT automatically available for scripts without 
having to set it first with SetEnv...

Guenter.

--- util_script.c.orig  Tue Feb 04 00:15:18 2003
+++ util_script.c       Mon Mar 10 17:42:36 2003
@@ -278,6 +278,7 @@
     apr_table_addn(e, "REMOTE_ADDR", c->remote_ip);
     apr_table_addn(e, "DOCUMENT_ROOT", ap_document_root(r));   /* Apache */
     apr_table_addn(e, "SERVER_ADMIN", s->server_admin);        /* Apache */
+    apr_table_addn(e, "SERVER_ROOT", ap_server_root);  /* Apache */
     apr_table_addn(e, "SCRIPT_FILENAME", r->filename); /* Apache */
 
     apr_sockaddr_port_get(&rport, c->remote_addr);


Attachment: util_script.c.diff-2.0
Description: Binary data

Reply via email to