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

Reply via email to