I've noticed that 2.0 API has no accessor function for server->path, for vhosts.

Index: include/http_vhost.h
===================================================================
RCS file: /home/cvs/httpd-2.0/include/http_vhost.h,v
retrieving revision 1.14.2.1
diff -u -r1.14.2.1 http_vhost.h
--- include/http_vhost.h        3 Feb 2003 17:31:29 -0000       1.14.2.1
+++ include/http_vhost.h        23 Aug 2003 17:56:13 -0000
@@ -116,6 +116,13 @@
 AP_DECLARE(int) ap_matches_request_vhost(request_rec *r, const char *host,
     apr_port_t port);

+/**
+ * Retrieve server->path
+ * @param s The server object (main or vhost)
+ * @return The server path
+ */
+AP_DECLARE(const char *) ap_server_path(server_rec *s);
+
 #ifdef __cplusplus
 }
 #endif
Index: server/vhost.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/vhost.c,v
retrieving revision 1.78.2.1
diff -u -r1.78.2.1 vhost.c
--- server/vhost.c      3 Feb 2003 17:32:01 -0000       1.78.2.1
+++ server/vhost.c      23 Aug 2003 17:56:15 -0000
@@ -1058,3 +1058,8 @@
      */
     conn->vhost_lookup_data = NULL;
 }
+
+AP_DECLARE(const char *) ap_server_path(server_rec *s)
+{
+    return s->path;
+}


__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com



Reply via email to