You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Günter Knauf <ef...@gmx.net> on 2003/03/10 18:43:50 UTC
[PATCH] Apache1.3.x util_script.c provide env var SERVER_ROOT
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:12:53 2003
+++ util_script.c Mon Mar 10 16:12:24 2003
@@ -292,6 +292,7 @@
ap_table_addn(e, "REMOTE_ADDR", c->remote_ip);
ap_table_addn(e, "DOCUMENT_ROOT", ap_document_root(r)); /* Apache */
ap_table_addn(e, "SERVER_ADMIN", s->server_admin); /* Apache */
+ ap_table_addn(e, "SERVER_ROOT", ap_server_root); /* Apache */
ap_table_addn(e, "SCRIPT_FILENAME", r->filename); /* Apache */
ap_table_addn(e, "REMOTE_PORT",