Apache with mod_aspnet

Post Reply
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Apache with mod_aspnet

Post by Masher »

This is deprecated, and probably won't work anymore, and we do not support it under Windows any longer ....
Get the latest version of Apache 2.2.x
Download the latest version of mod_aspnet for Apache 2.2 (module for 2.0 is available also if you are already using that version of Apache)
  • Install Apache like anyother program.
  • Install mod_aspnet like anyother program, but pay attention to make sure it installs to where Apache is. (\Program Files\Apache Software Foundation\Apache2.2 by default)
  • Delete the files in <WhereApacheIsInstalled>\htdocs. Then copy the Web Control Panel files to this folder.
  • Open <WhereApacheIsInstalled>\conf\httpd.conf
  • Paste the following to the bottom of the file. Be sure to set the correct path for the AspNetMount and Directory Directive

    Code: Select all

    #asp.net 
    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> 
    AspNetMount / "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs" 
    # Map all requests for asp to the application files--uncomment if UGCC is in a subdirectory of htdocs and update virtual path and path
    #Alias /ugcc "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs" 
    
    <Directory "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"> 
    AspNet On
    Options FollowSymlinks ExecCGI
    Order allow,deny 
    Allow from all 
    DirectoryIndex Default.aspx index.htm index.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" 
    <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles"> 
    Options FollowSymlinks 
    Order allow,deny 
    Allow from all 
    </Directory> 
    </IfModule> 
    #asp.net 
    
  • Restart apache and try to access http://localhost in a web browser. You should see the Login page or an error page (ok at this point)
  • Proceed to Configuring the Web Control Panel
Last edited by Masher on Mon May 11, 2020 6:22 pm, edited 1 time in total.
Reason: Updated
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Post Reply