Let Apache also support ASP environment methods

Source: Internet
Author: User
Tags soap

Note: Notice that the above method is limited to Windows and has a framework in general Win7 has its own


1, first download a mod_aspdotnet-2.2.0.2006-setup-r2.msi

2, installed in the Apache Moudles directory will generate a mod_aspdotnet.so file

3, modify the httpd.conf at the end of the file plus the following code

The code is as follows Copy Code

#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

Where the red for your site placed the directory

4, restart the Apache OK success

Look at other articles.

According to the instructions on the Internet to try to install IIS, at least installed but not so, it seems that XP home does not support IIS, so turned to Apache.

Install good Apache 2.2.9 http://www.apache.org/, all normal, and found that does not support ASP and. NET program, Halo;

Google, find Sun Java System Active Server Pages 4.0

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

Download down to install well, restart the machine, ok,asp no problem;

Continue to Google, find a project mod_aspdotnet below Apache, found that Apache has not supported this project,

This project was converted to sourceforge,mod_aspdotnet-2.2.0 http://sourceforge.net/projects/mod-aspdotnet,

Download install, modify Apache httpd.conf, add at the end

The code is as follows Copy Code

#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 is 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>

The above part of the code, pay attention to do not have empty lines, relevant path to fill in the actual situation

It is also found that this version only supports. NET framework1.1, and then unloads the 2.0 reload 1.1,ok, but does not support the. NET 2.0 syntax

The environment in which the final test is successful

Windows XP Home Edition

Apache 2.2.9

Sun One ASP 4.0

. NET Frmawork 1.1

Mod_aspdotnet 2.2.0

The evils of Microsoft


Ko our installation on it, we can see that the normal operation is not OH.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.