Sunday, October 31, 2010

Configuring Virtual Directory for ASP.NET on Apache

Just add the necessary entry on /etc/apache2/httpd.conf:

Alias /test "/Users/Michael/Projects/TestAspNetMvc/TestAspNetMvc/"
<Directory "/Users/Michael/Projects/TestAspNetMvc/TestAspNetMvc/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None

    Order allow,deny
    Allow from all
</Directory>
AddMonoApplications default "/test:/Users/Michael/Projects/TestAspNetMvc/TestAspNetMvc/"
<Location /test>
 SetHandler mono
</Location>

Using that example, you can browse your TestAspNetMvc on http://127.0.0.1/test



The How-To Video:



4 comments:

  1. Thanks for the post!
    Can you tell me how you can enable the feature to work with the path on top of your finder window?

    ReplyDelete
  2. I've been searching for days to run mono webapps on apache. I've also been looking for a tool like FinderPath. I wish I had found your blog sooner :-). Thanks a lot, and ... great work!

    ReplyDelete
  3. hey man, Can you tell me if it's the same thing if I run mono web apps on ubuntu..??? thanks...

    ReplyDelete