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 2004/11/21 20:15:28 UTC

svn commit: r106106 - /httpd/mod_aspdotnet/trunk/aspnet.conf

Author: wrowe
Date: Sun Nov 21 11:15:27 2004
New Revision: 106106

Modified:
   httpd/mod_aspdotnet/trunk/aspnet.conf
Log:

  Clarify the aspnet.conf section, add copious notes, and insert the
  X-Hosted-By header as prodded by Jeff White <jlwpc1 earthlink.net>


Modified: httpd/mod_aspdotnet/trunk/aspnet.conf
Url: http://svn.apache.org/viewcvs/httpd/mod_aspdotnet/trunk/aspnet.conf?view=diff&rev=106106&p1=httpd/mod_aspdotnet/trunk/aspnet.conf&r1=106105&p2=httpd/mod_aspdotnet/trunk/aspnet.conf&r2=106106
==============================================================================
--- httpd/mod_aspdotnet/trunk/aspnet.conf	(original)
+++ httpd/mod_aspdotnet/trunk/aspnet.conf	Sun Nov 21 11:15:27 2004
@@ -1,22 +1,67 @@
+# Load the Apache mod_aspdotnet.so module 
+#   - which in turn loads the .NET / ASP.NET Framework
+#      - which in turn loads the Apache.Web.dll provider
+#
 LoadModule aspdotnet_module "../modules/mod_aspdotnet.so"
 
-AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj \
-                   licx rem resources resx soap vb vbproj vsdisco webinfo 
+<IfModule mod_aspdotnet.cpp>
+  # Appear consistent with other ASP.NET hosts to the client.
+  # This is optional, unaware of client applications expecting it.
+  #
+  Header Add X-Powered-By ASP.NET
 
-AliasMatch "^/(?i)aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*)" \
-           "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
+  # Process these file types with the asp.net handler
+  # (provided they fall within an AspNetMount'ed location)
+  #
+  AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj \
+                     licx rem resources resx soap vb vbproj vsdisco webinfo 
 
-<Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
+  # Serve the /aspnet_client files to the web browser, to handle
+  # JavaScript controls integrated into ASP.NET applications.
+  #
+  AliasMatch "^/(?i)aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*)" \
+             "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
+
+  # Permit the /aspnet_client files to be served to web clients.
+  # Change C:/Windows above in the AliasMatch, and below in the <Directory >
+  # line to reflect the root of Windows (echo %windir% from the cmd prompt.)
+  #
+  <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
     Options FollowSymlinks
     Order allow,deny
     Allow from all
-</Directory>
+  </Directory>
+
+  # This <IfDefine > prevents Apache from processing this example
+  # template, duplicate the contents (adjusting for your desired
+  # /app-uri and C:/path/to/app) as many times as necessary, but
+  # not within the <IfDefine > ... </IfDefine> section
+  #
+  <IfDefine ASP.NET-template>
+
+    # Create an ASP.NET host for Requests to /app-uri to be processed
+    # by c:/path/to/app - see the Alias below for actually serving
+    # /app-uri from Apache.
+    # This is usually the path of the web.config file for the app.
+    #
+    AspNetMount /app-uri "C:/path/to/app"
+
+    # Have Apache serve /app-uri requests with c:/path/to/app mounted hosted
+    # Some form of Alias is required, AspNetMount does not expose /app-uri
+    # itself, through Apache.
+    #
+    Alias /app-uri "C:/path/to/app"
+
+    # Permit content in C:/path/to/app to be served (and use ASP.NET
+    # conventions for the default pages.)
+    #
+    <Directory "C:/path/to/app">
+      Options FollowSymlinks Indexes Includes ExecCGI
+      Order allow,deny
+      Allow from all
+      DirectoryIndex default.htm default.aspx
+    </Directory>
+
+  </IfDefine>
 
-#AspNetMount /app-uri "C:/path/to/app"
-#Alias /app-uri "C:/path/to/app"
-#<Directory "C:/path/to/app">
-#    Options FollowSymlinks Indexes Includes ExecCGI
-#    Order allow,deny
-#    Allow from all
-#    DirectoryIndex default.htm default.aspx
-#</Directory>
+</IfModule>
\ No newline at end of file

Re: svn commit: r106106 - /httpd/mod_aspdotnet/trunk/aspnet.conf

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
At 01:01 PM 11/22/2004, Jeff White wrote:

>>Author: wrowe
>>Date: Sun Nov 21 11:15:27 2004
>>New Revision: 106106
>>Modified:
>>  httpd/mod_aspdotnet/trunk/aspnet.conf
>>Log:
>> Clarify the aspnet.conf section, add copious notes, and insert the
>> X-Hosted-By header 
>
>Are changes like these rolled nightly
>into a newer version, so there are constantly newer zips, exes and msi files avaliable?

I don't expect to start snapshot nightly builds.  Nightly
-sources.zip files can be arranged if the group desires.

I have only one item in mind for the next release, address the
double-instantiation of web hosts due to the way httpd loads
the conf sections.  If we can fix that, I'd say we are near
ready for the next point release.

Although you are welcome to point out 2.0.0 to friends, I would
like to follow with the next build before spamming DOTNET-CX
and similar lists.

Jeff raises a good point - folks, the pages should be respectable
by now, please point out any issues you find with either;

  http://httpd.apache.org/cli/

or

  http://www.apache.org/dist/httpd/mod_aspdotnet/

so it's polished before we announce this baby is born, to the world.

Bill



Re: svn commit: r106106 - /httpd/mod_aspdotnet/trunk/aspnet.conf

Posted by Jeff White <jl...@earthlink.net>.
From: <wr...@apache.org>

> Author: wrowe
> Date: Sun Nov 21 11:15:27 2004
> New Revision: 106106
> 
> Modified:
>   httpd/mod_aspdotnet/trunk/aspnet.conf
> Log:
> 
>  Clarify the aspnet.conf section, add copious notes, and insert the
>  X-Hosted-By header 

Are changes like these rolled nightly
into a newer version, so there are 
constantly newer zips, exes and msi 
files avaliable?

Jeff