1. Support for Asp.net
(1) install. NET Framework
Double-hitting dotnetfx.exe is also the next line.
(2) install mod_aspdotnet
Install Apache and. NET Framework before installing mod_aspdotnet.
Double-click the mod_aspdotnet-2.0.0.msi, select agree to the terms, click Next; select all users single button, one way to next on the line.
(3) Configure httpd. conf
Go to the Apache installation directory, find the conf folder, and double-click it. Open the httpd. conf file in text and add the following content to the bottom of the file:
# Load the Asp.net Module
Loadmodule aspdotnet_module "modules/mod_aspdotnet.so"
# If mod_aspdotnet is loaded successfully
<Ifmodule mod_aspdotnet.cpp>
Addhandler Asp.net asax ascx ashx asmx aspx axd config CS csproj licx REM resources resx soap VB vbproj vsdisco webinfo
# For all virtual ASP. NET webs, we need the aspnet_client files
# To serve the client-side helper scripts.
Aliasmatch ^ /(? I) aspnet_client/system_web/(\ D +) _ (\ D + )/(. *) "C:/winnt/Microsoft. net/framework/V $1. $2. $3/asp. netclientfiles/$4"
<Directory "C:/winnt/Microsoft. NET/framework/V */asp. netclientfiles">
Options followsymlinks
Order allow, deny
Allow from all
</Directory>
</Ifmodule>
<Virtualhost *: 80>
Serveradmin $ mail_address
DocumentRoot "$ apache_home \ htdocs"
Servername $ servername
Directoryindex index. jsp index. asp index. aspx index.htm
# If mod_aspdotnet is loaded successfully
<Ifmodule mod_aspdotnet.cpp>
# Load ASP. NET applications. When the first parameter is "/", Asp.net must be supported for the entire VM.
Aspnetmount/"$ apache_home \ htdocs"
# Set the virtual directory of the application Asp.net. Do not set it when the entire virtual host needs to support Asp.net.
# Alias/active "$ apache_home \ htdocs \ Active"
# Allow Asp.net scripts to execute the following directories
<Directory "$ apache_home \ htdocs">
Options followsymlinks execcgi
Order allow, deny
Allow from all
</Directory>
</Ifmodule>
</Virtualhost>
Ii. Support for ASP
1. Download IASP Win32 version: iasp2.1.01.exe, about 10 MB.
2. Make sure that your Win2000 Server has installed JDK and Apache. Occasionally installed:
Apache_1.3.27-win32-x86-no_src.exe
Jdk140.exe
3. Double-click iasp2.1.01.exe to start installation. Install the prompt. Even the installation path is c: \ iasp2101
4. After the installation is complete, the system prompts whether to configure IASP now. Of course, select: Yes.
5 Configuration:
Step 1: Select instant ASP native servlet support as the proxy service.
Step 2: Select Apache for the Web server. (Whether prompted or not)
Step 3: select the location of the Apache configuration file httpd. conf. Even c: \ apache \ conf \ httpd. conf
Select version 1.3.2x based on your Apache version ).
Proxy: If you have a fixed IP address, add your fixed IP address. If not, add 127.0.0.1.
Port: This is the proxy interface between APACHE and IASP. Use the default value (9098.
Server Manager port: Remote Management port. Select the default value (9095.
Step 4: The configuration is complete.
6 Note: IASP adds the following statement to the Apache configuration file httpd. conf:
# IASP setting
Loadmodule iasp_module "C:/iasp2101/bin/Apache/Win32/1.3.20/IASP. dll"
Alias/IASP "C:/iasp2101"
Iaspconfig server "C:/iasp2101/properties/server. properties"
Iaspconfig rules "C:/iasp2101/properties/rules. properties"
7. Change httpd. conf to change the default homepage of Apache:
Directoryindex index.htm
Directoryindex index. php
Directoryindex index. asp
Save the changes and restart Apache.
8. Execute: Start->Program-> Instant ASP 2.1.01-> install IASP as NT Service
In this way, IASP is added to the Win2000 Server service.
Run: Start> program> instant ASP 2.1.01> start instant ASP
In this way, IASP is opened immediately. Apache supports ASP!
Example: Write this sentence in index. asp: <% response. Write ("I succeeded! "%>, And save it to the Apache web page root directory.
In the browser, enter http: // your IP: Apache port number/press enter and you will see "I succeeded !" Your IASP installation is successful!
Run: Start-> Program-> instant ASP 2.1.01-> start admin
You can also use http: // your IP: 9095 to log on to remote management to manage IASP. Default username and password: Admin.