Click here to Skip to main content
11,924,800 members (54,667 online)
Click here to Skip to main content
Add your own
alternative version


55 bookmarked

Cassini and Apache 101

, 19 Aug 2002
Rate this:
Please Sign up or sign in to vote.
This article describes how to get ASP.NET up and running on Apache 2.x for Windows


Cassini is a web server written in C#, you'll find more information about it at

These simple steps gets Apache up and running with ASP.NET

  1. Download and install Apache 2.x for Windows (remember to stop IIS)
  2. Modify the http.conf file:
    LoadModule proxy_module modules/
    LoadModule proxy_connect_module modules/
    LoadModule proxy_http_module modules/
    LoadModule rewrite_module modules/ 
    ProxyPass /aspnet 
    ProxyPassReverse /aspnet 
  3. Create a different catalog (not the /aspnet catalog in http.conf) for your ASP.NET files and start Cassini:
    1. If you are using the cassini server included in WebMatrix
      c:\path-to-cassini\webserver.exe /port:8080 /path:"c:\"
    2. or, the stand-alone Cassini server
      c:\path-to-cassini\CassiniWebServer "c:\" 8080
  4. Test:
    • Cassini: http://localhost:8080/test.aspx
    • Apache: http://localhost/aspnet/test.aspx
    <!--<span class="code-comment"> test.aspx --></span>

Ultimate test

If everything is working fine, you can move on to the 'ultimate' test, running ASP.NET Forums on Apache

  1. Do a manual installation of ASP.NET Forums (skipping step 7)
  2. Add to http.conf (assumes the modifications above are done)
    ProxyPass /AspNetForums 
    ProxyPassReverse /AspNetForums 
    ProxyPass /aspnet_client 
    ProxyPassReverse /aspnet_client 
  3. Start 2 different Cassinis listening on port 8081 and 8082.
    c:\path-to-cassini\webserver.exe /port:8081 /path:"c:\" /vpath:"/AspNetForums" 
    c:\path-to-cassini\webserver.exe /port:8082 /path:"E:\Program Files\ASP.NET\Client Files" /vpath:"/aspnet_client"

It is not the fastest solution, but everything works fine. I decided to "stress-test" it using Homer running 10 threads 5 sockets per thread in one minute, and got the following:

Page Hits TTFB* Avg. TTLB* Avg.
/AspNetForums/Default.aspx 286 1024.96 7458.23

*: TTFB = Time To First Byte, TTLP = Time To Last Byte

Bear in mind that this test was done on my Thinkpad T21 800Mhz/512 MB, which is filled with junk.

Now I am waiting for someone to write a mod_cassini



This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Per S
Web Developer
Norway Norway
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralApache and .net Pin
Jake Helfert23-Jan-03 8:00
memberJake Helfert23-Jan-03 8:00 
GeneralRe: Apache and .net Pin
yamadhrama14-Apr-03 21:50
memberyamadhrama14-Apr-03 21:50 
hai JAke
i am using apache 1.3 on windows.
can u pls tell me how to configure apache to process applications.

i am not using cassini web server.

pls help me in configuring this

GeneralRe: Apache and .net Pin
AlexGnauck8-Mar-04 5:31
memberAlexGnauck8-Mar-04 5:31 
GeneralRe: Apache and .net Pin
arnab197414-Nov-04 19:53
memberarnab197414-Nov-04 19:53 
GeneralRe: Apache and .net Pin
dzCepheus16-Nov-04 14:32
memberdzCepheus16-Nov-04 14:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.151125.3 | Last Updated 20 Aug 2002
Article Copyright 2002 by Per S
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid