Have apache also support the asp environment method

  • 2020-05-09 19:48:20
  • OfStack

Note: note that the above method is only available under windows and that win7 like Framework1 is already available

1. First download one mod_aspdotnet-2.2.0.2006 -- setup-r2.msi
2. After installation, one mod_aspdotnet.so file will be generated in the moudles directory of apache
3. Modify httpd.conf to add the following code to the end of the file


#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 / "D:/xampp/xampp/htdocs/"    
    Alias / "D:/xampp/xampp/htdocs/"    
    <Directory "D:/xampp/xampp/htdocs/">    
         Options FollowSymlinks ExecCGI    
        Order allow,deny    
        Allow from all    
        DirectoryIndex index.htm index.aspx    
    </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>

#asp.net

Red is one of the directories where your site is placed

4. Restart apache ok successfully

Look at other articles

Try to install IIS according to the instructions on the Internet, but it doesn't work. It seems that xp home does not support IIS, so it turns to Apache.

Download and install good Apache 2.2.9 http: / / www apache. org /, 1 slice is normal, and found that does not support asp and. net program, dizzy.

google1, find Sun Java System Active Server Pages 4.0

http: / / www. sun. com/software/chilisoft /,

Download it, install it, restart the machine, ok, asp no problem;

Continue with google, find one item below Apache, mod_aspdotnet, and find that Apache no longer supports this item,

The project to be sourceforge mod_aspdotnet - 2.2.0, http: / / sourceforge net/projects/mod - aspdotnet,

Download and install apache, modify httpd.conf, add at the end


#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>
# Mount the ASP.NET example application
AspNetMount /active "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/active"
# Map all requests for /active to the application files
Alias /active "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/active"
# Allow asp.net scripts to be executed in the active example
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/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"
<Directory /
"C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
</IfModule>

Be careful not to leave empty lines in the above code. Fill in the relevant path according to the actual situation

It was also found that this version only supported.net framework1.1, so it uninstalled 2.0 and reinstalled 1.1, ok, except for the syntax of.net 2.0
.

Ultimately test the successful environment

windows xp home edition
apache 2.2.9
sun one asp 4.0
.net frmawork 1.1
mod_aspdotnet 2.2.0
Evil microsoft

Our installation of KO is ok, let's see if it can run normally.


Related articles: