You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cli-dev@httpd.apache.org by wr...@apache.org on 2005/01/03 07:14:25 UTC
svn commit: r123944 - /httpd/mod_aspdotnet/trunk/mod/mod_aspdotnet.cpp
Author: wrowe
Date: Sun Jan 2 22:14:24 2005
New Revision: 123944
URL: http://svn.apache.org/viewcvs?view=rev&rev=123944
Log:
Introduce the AspNetVersion command to invoke a specific .NET framework
in the httpd.conf file, e.g.
# to enable .NET 1.1 release;
AspNetVersion v1.1.4322
# to enable .NET 1.0 release;
AspNetVersion v1.0.3705
Modified:
httpd/mod_aspdotnet/trunk/mod/mod_aspdotnet.cpp
Modified: httpd/mod_aspdotnet/trunk/mod/mod_aspdotnet.cpp
Url: http://svn.apache.org/viewcvs/httpd/mod_aspdotnet/trunk/mod/mod_aspdotnet.cpp?view=diff&rev=123944&p1=httpd/mod_aspdotnet/trunk/mod/mod_aspdotnet.cpp&r1=123943&p2=httpd/mod_aspdotnet/trunk/mod/mod_aspdotnet.cpp&r2=123944
==============================================================================
--- httpd/mod_aspdotnet/trunk/mod/mod_aspdotnet.cpp (original)
+++ httpd/mod_aspdotnet/trunk/mod/mod_aspdotnet.cpp Sun Jan 2 22:14:24 2005
@@ -114,8 +114,8 @@
}
-static const char *asp_net_mount(cmd_parms *cmd, void *dummy,
- const char *uri, const char *rootarg)
+static const char *mount_cmd(cmd_parms *cmd, void *dummy,
+ const char *uri, const char *rootarg)
{
char *root;
asp_net_sconf_t *sconf
@@ -177,10 +177,18 @@
return NULL;
}
+static const char *version_cmd(cmd_parms *cmd, void *dummy, const char *ver)
+{
+ global_conf->cor_version = apr_pstrdup(global_conf->pool, ver);
+ return NULL;
+}
+
static const command_rec asp_net_cmds[] =
{
- AP_INIT_TAKE2("AspNetMount", (cmd_func)asp_net_mount, NULL, RSRC_CONF,
- "Mount a URI path to an Asp.Net AppDomain path root"),
+ AP_INIT_TAKE1("AspNetVersion", (cmd_func)version_cmd, NULL, RSRC_CONF,
+ "Select a specific ASP.NET version in the format v#.#.####"),
+ AP_INIT_TAKE2("AspNetMount", (cmd_func)mount_cmd, NULL, RSRC_CONF,
+ "Mount a URI path to an ASP.NET AppDomain root directory"),
{NULL}
};