Installing mod aspdotnet

From The Uniform Server Wiki
Jump to navigation Jump to search

First, make sure that you have at least .NET Framework 1.1 installed and also if using XP, you may have to have at least SP1 installed for it to work.

Download the mod_aspdotnet module here

Install it to the Apache directory, if the W:/ path gives you problem, then use the real path.

In Apache's httpd.conf, add this under the other modules:

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>

# Mount the ASP.NET example application
AspNetMount /active "W:/www/active"

# Map all requests for /active to the application files
Alias /active "W:/www/active"

# Allow asp.net scripts to be executed in the active example
 <Directory "W:/www/active">
   Options FollowSymlinks ExecCGI
   Order allow,deny
   Allow from all
   DirectoryIndex Default.htm Default.aspx
 </Directory>

# For all virtual ASP.NET webs, we need the aspnet_client files
# to serve the client-side helper scripts.
AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) \
"C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
"C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymlinks
Order allow,deny
Allow from all

</IfModule>

For more information, refer to the default website

Credits: gopo & TerryLok

Original instructions by: Olajide Olaolorun (Uniform Server Developer)