Return-Path:
Delivered-To: apmail-httpd-docs-archive@www.apache.org
Received: (qmail 46170 invoked from network); 20 Jul 2006 04:27:56 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 20 Jul 2006 04:27:56 -0000
Received: (qmail 72788 invoked by uid 500); 20 Jul 2006 04:27:56 -0000
Delivered-To: apmail-httpd-docs-archive@httpd.apache.org
Received: (qmail 72489 invoked by uid 500); 20 Jul 2006 04:27:55 -0000
Mailing-List: contact docs-help@httpd.apache.org; run by ezmlm
Precedence: bulk
list-help:
list-unsubscribe:
List-Post:
Reply-To: docs@httpd.apache.org
List-Id:
Delivered-To: mailing list docs@httpd.apache.org
Received: (qmail 72478 invoked by uid 99); 20 Jul 2006 04:27:55 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jul 2006 21:27:55 -0700
X-ASF-Spam-Status: No, hits=0.5 required=10.0
tests=DNS_FROM_RFC_ABUSE,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: domain of wdaquell@gmail.com designates
66.249.82.207 as permitted sender)
Received: from [66.249.82.207] (HELO wx-out-0102.google.com) (66.249.82.207)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jul 2006 21:27:50 -0700
Received: by wx-out-0102.google.com with SMTP id s15so209186wxc
for ; Wed, 19 Jul 2006 21:27:30 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=beta; d=gmail.com;
h=received:message-id:date:user-agent:mime-version:to:subject:content-type:from;
b=Zl2Pf+CWxCOfr07VQjYuzhoXe/ngzHzGodohxgyv5TiuI5lq2VNMycDpwTFvGbxRB1nfw00Sfipvipy53WUOLdigA/kqbFmD+o5W/HOSHTUHbMp+hBPHTeeCl/FnPx1+/1ZCJkz25B3RuTXTG/10wBCIToz1tGmnqEsi8q2cQL8=
Received: by 10.70.94.4 with SMTP id r4mr2076081wxb;
Wed, 19 Jul 2006 21:27:30 -0700 (PDT)
Received: from ?192.168.1.150? ( [24.225.91.27])
by mx.gmail.com with ESMTP id i19sm2073055wxd.2006.07.19.21.27.29;
Wed, 19 Jul 2006 21:27:29 -0700 (PDT)
Message-ID: <44BF060E.3000301@gmail.com>
Date: Thu, 20 Jul 2006 00:26:54 -0400
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
MIME-Version: 1.0
To: docs@httpd.apache.org
Subject: [Patch] mod_aspdotnet HelloWorld Tutorial
Content-Type: multipart/mixed;
boundary="------------030802010004060809010409"
From: WDaquell
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N
--------------030802010004060809010409
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi.
In an effort the keep the mod_aspdotnet project alive, I've created a
small tutorial for implementing mod_aspdotnet in Apache 2.0.x. The xml
file is as complete as I can get it (it took me a few hours to scout out
the coding conventions), but I can't take it any farther myself. It's
attached to this email. If anyone can help me get it applied, I would
appreciate it greatly.
Here's to mod_aspdotnet.
-Wraith
--------------030802010004060809010409
Content-Type: text/xml;
name="helloworld.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="helloworld.xml"
Apache httpd users
'Hello World' - a starter's tutorial to mod_aspdotnet
Prerequisites
The following must be already in place on your system before you can install mod_aspdotnet:
- Windows NT or similar operating system
- mod_aspdotnet will only run on a Windows system; for implementing asp.net applications
in other environments, there is Mono.
Furthermore, the Windows system must be based off of the NT kernel (Windows NT, 2000, XP,
and Vista).
- The .NET runtime (http://asp.net/download.aspx)
- .NET runtime 1.0 or 1.1 must be installed. Support for 2.0 is being considered and can be used,
but that is beyond the scope of this tutorial.
- Apache 2.0.x
- For information on setting up your server, the Apache project provides
documentation.
- A simple knowledge of server configuration
- This article assumes you know how to open the httpd.conf file, write lines to it, and save it (and optionally close it).
Installing mod_aspdotnet
Assuming the prerequisites above are met, go ahead and download
mod_aspdotnet 2.0.0.
This is a self-installing MSI; simply run it to start the automated installation process. Accept all the prompts
and continue. Note again that only the Apache 2.0.x binaries are accepted in this official mod_aspdotnet release; support for
httpd 2.2 binaries are being considered.
After the MSI finished its installation, the mod_aspdotnet.so module is ready to be used. Open your httpd.conf
file and scroll to the end of the file. Create a new section there and copy the following code:
Basic Configuration
## Start mod_aspdotnet configuration section ##
# Load in the mod_aspdotnet module
LoadModule aspdotnet_module modules/mod_aspdotnet.so
# Add support for ASP.NET file types
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj \
licx rem resources resx soap vb vbproj vsdisco webinfo
# Technical jargon for attaching to the ASP.NET pipeline;
# Note that the path to Windows below may be incorrect. You'll have to adjust it
# based on your system.
AliasMatch "^/(?i)aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*)" \
"C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
# Technical jargon to allow files from the ASP.NET cache
<Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
Note that the paths to Windows contained in the AliasMatch and Directory sections above may need to
be corrected from the default of C:/Windows. Note that Apache uses forward slash notation ( / ) instead of
the Windows default backslash notation ( \ ).
mod_aspdotnet is now ready to go. Before you can run any ASP.NET applications, however, you must
mount them into Apache. The aspdotnet module is extremely powerful and can mount a number of applications
without difficulty; for the purpose of this tutorial we will simply mount a sample directory. First, create the sample
directory (in this article, I will use C:/helloworld). Inside that directory, create a file called HelloWorld.aspx and copy
the following code into it:
HelloWorld.aspx:
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Hello World! - mod_aspdotnet</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<% Response.Write("<h1>Hello World!</h1>")%>
</div>
</form>
</body>
</html>
Save this file and close it. Open httpd.conf again and scroll down the bottom. Now we will mount the application:
Mounting HelloWorld:
AspNetMount /HelloWorld "C:/HelloWorld"
Alias /HelloWorld "C:/HelloWorld"
<Directory "C:/HelloWorld" >
Options FollowSymlinks Indexes
AspNet files
Order allow,deny
Allow from all
DirectoryIndex HelloWorld.aspx
</Directory>
The sample application is ready to run! Open up your browser, go to the sample,
and view your ASP.NET masterpiece. From here, the sky is the limit! For further information on mod_aspdotnet, refer to
http://httpd.apache.org/docs/trunk/mod/mod_aspdotnet.html.
--------------030802010004060809010409
Content-Type: text/plain; charset=us-ascii
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
--------------030802010004060809010409--