/mod_aspdotnet

This repo is migrated from mod_aspdotnet to support Apache 2.4

Primary LanguageCApache License 2.0Apache-2.0

What is it?

This repo is migrated from mod_aspdotnet to support Apache 2.4 for my own purpose.

I'm not good at architecture on Apache and its module. My work is only to support for Apache 2.4 and .NET 4.0 or later.

You have to install appropriate modules for your environment as follows.

Apache Version mod_aspdotet .NET
2.0 mod_aspdotnet-2.0.0.msi CLR 2
2.2 mod_aspdotnet-2.2.0.2006-setup-r2.msi CLR 2
2.4 Release at this repo. (Or build for yourself) CLR 4

, which means this version only support ASP.NET within Apache 2.4 in cases of .NET 4.0 or later installation. If windows contains .NET 2.0 only, it won't work.

How to install

Release at this repo only contains two files

  • Apache.Web.dll
  • mod_aspdotnet.so

You have to install Apache.Web.dll into .NET 4.0 GAC(Global Assembly Cache) using gacutil.exe which is in Windows SDK or your Visual Studio installation folder.

For mod_aspdotnet.so, just copy to Apache modules folder.

At last step, you have to append configuration to your Apache httpd.conf. (Note that it is changed from mod_aspdotnet 2.2)


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 /aspdocs "c:/temp/xampp/aspdocs"
    Alias /aspdocs "c:/temp/xampp/aspdocs"

    <Directory "c:/temp/xampp/aspdocs">
Require all granted
    </Directory>

    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>

Apache.Web.dll and mod_asdpdotnet.so have dependencies on Microsoft Visual C++ Redistributable for Visual Studio 2017

How to build

You can build this solution in Visual Studio 2017. There is no prerequisites.

  • If you need to get binaries for Windows XP/2003, you have to install Visual Studio 2013 for Platform Toolset = 'v120_xp'.

Change Log

2.4 - Sep 3, 2017

Reqeuests or Contributing to Repository

As I said, I just migrated this repo for my private purpose. If you need some features or whatever, make an issue at https://github.com/stjeong/mod_aspdotnet/issues

Any help and advices for this repo are welcome. (I just know a few knowledge about .NET Framework and am a totally novice at Apache Server)

License

Apache License V2.0

(Refer to LICENSE.txt)