Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6941521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:53:48+00:00 2026-05-27T12:53:48+00:00

I ended up attempting to setup ASP with ModMono on Apache2, via following this

  • 0

I ended up attempting to setup ASP with ModMono on Apache2, via following this guide.

It’s not working, however: when I click a .aspx file, I end up just downloading it on my localhost.

Here’s my asp.webapp file /etc/mono-server2

<apps>
    <web-application>
        <name>asp</asp>
        <vpath>/asp</vpath>
        <path>/var/www/asp/</path>
        <vhost>127.0.0.1</vhost>
    </web-application>
</apps>

and my asp file in /etc/apache2/sites-available/

<Virtualhost 127.0.1.1:80>
    ServerName asp

    DocumentRoot /var/www/asp/

    <Directory /var/www/asp/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow, deny
        Allow from all 
        SetHandler mono
        DirectoryIndex index.aspx index.html
    </Directory>
</VirtualHost>

Is there anything which I’m doing wrong here? The only issue I can think of is that I’m trying to reference a directory, rather than a specific page or file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:53:49+00:00Added an answer on May 27, 2026 at 12:53 pm

    If you have installed mod_mono and it is configured correctly to work with apache2 then all you will need to do is change your site configuration in /etc/apache2/sites-available/ to something like this:

    <Virtualhost 127.0.1.1:80>
    ServerName asp
    DirectoryIndex index.html index.aspx
    DocumentRoot /var/www/asp/
    
    AddMonoApplications asp "/:/var/www/asp"
    MonoServerPath asp "/usr/bin/mod-mono-server2"
    
    <Directory /var/www/asp/>
        MonoSetServerAlias asp
        SetHandler mono
        AddHandler mod_mono .aspx .ascx .asax .ashx .config .cs .asmx
         <FilesMatch "\.(gif|jp?g|png|css|ico|xsl|wmv|zip)$">
            SetHandler None
        </FilesMatch>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow, deny
        Allow from all 
        SetHandler mono
        DirectoryIndex index.aspx
    </Directory>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not entirely sure of the steps that caused this however I have ended
This question is a bit open ended as I'm not sure it's possible or
Ended up with this awful data structure: List<KeyValuePair<string, KeyValuePair<string, string>>> It's not likely to
I ended up with something like the following code in a project I'm working
I ended up writing a quick little script for this in Python, but I
I ended up with this horrible code below, I can't get a better result
This is a difficult and open-ended question I know, but I thought I'd throw
In my last job we ended up rewriting the complete ASP.NET stack (forms, controls,
After some find and replace refactoring I ended up with this gem: const class
I'm attempting to setup a MenuItem that will have a submenu of page numbers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.