Update: Note that this information is a bit inaccurate and is corrected in further posts in this thread.
Update: Also note that you can get the latest version of mod_aspdotnet here...
http://www.devside.net/web/server/free/downloadhttp://httpd.apache.org/mod_aspdotnet/mod_aspdotnet works only with the .NET Framework version 1.0 and 1.1 at this time. Flexibility for the 2.0 .NET Framework and beyond is being considered.
Have .NET Framework v1.0 or v1.1 Runtime Installed.
Stop Apache.
Download current version of mod_aspdotnet-*.*.*.msi from...
http://www.apache.org/dist/httpd/mod_aspdotnet/Run this msi file from the root of the drive that the Web-Server Suite is installed on.
This will copy mod_aspdotnet.so into your Apache2/modules/ directory, and install/register the Apache.Web.dll into the Global Assembly Cache.
Edit httpd.conf (watch those two line-breaks ("\")!)...
LoadModule aspdotnet_module modules/mod_aspdotnet.so
# Use the asp.net handler for all common ASP.NET file types
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>
# Mount the sampleapp example application
AspNetMount /sampleapp "C:/www/webroot/sampleapp"
# Map all requests for /sampleapp to the sampleapp application files
Alias /sampleapp "C:/www/webroot/sampleapp"
# Allow asp.net scripts to be executed in the sampleapp example
<Directory "C:/www/webroot/sampleapp">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex Default.htm Default.html Default.aspx
</Directory>
# For all virtual ASP.NET webs, we need the aspnet_client files
# to serve the client-side helper scripts.
# NOTICE "C:/Windows/" -- change to %systemroot%
# "C:/Windows/" for WinXP, "C:/WINNT/" for Win2k
AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) \
"C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
# NOTICE "C:/Windows/" -- change to %systemroot%
# "C:/Windows/" for WinXP, "C:/WINNT/" for Win2k
<Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
</IfModule>
Save file.
Create directory C:\www\webroot\sampleapp
Place any of the listed ASP.NET type files into this directory.
Start Apache.
Access as
http://localhost/sampleapp/file.typeHere is an example...
helloworld.aspx
<%@ Page Language="VB" %>
<html>
<body>
<% Dim I As Integer
For I = 0 To 7 %>
<font size="<%=I%>"> Hello World! </font> <br>
<% Next %>
The time And date is now <%=now()%>
</body>
</html>