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 6185223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:40:29+00:00 2026-05-24T01:40:29+00:00

I have installed mono platform on my Linux server and I was able to

  • 0

I have installed mono platform on my Linux server and I was able to run it behind nginx HTTP server. The system is working well and serving .NET specific dynamic files flawlessly.

However, I want to pass only (and only) required files (by extension) to mono and let nginx handle all the other files including static files and the files that should not be served in normal circumstances on .NET platform. I have configured my nginx as seen below but – since I don’t have enough knowledge about .NET platform – I am not sure which extensions should must be passed to mono and which ones must be forbidden.

Here is the related part of my nginx configuration file:

# Do not pass .NET forbidden extensions to anywhere.
# Theese are the extensions that should not be served to the clients
location ~ \.(config|dbml|dll|master|other|forbidden|exts)$ {
    deny all;
}

And here is the configuration part that will pass required (only required) files to mono:

# Theese are the extensions which *must* be handled by mono
location ~ \.(aspx|cs|other|exts|that|must|be|handled|by|mono)$ {
    fastcgi_pass    127.0.0.1:9000;
    fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    include         fastcgi.conf;
    fastcgi_index   default.aspx;
}

# Other static files will be handled by nginx.

I have found some .NET specific file extensions from Wikipedia entry but they are far from complete.

So my question has three sub-questions:

  • What are the .NET platform-specific file extensions?
  • Which of them must be handled by .NET engine?
  • Which of them confidential and must not be served to the clients?

This will be a shared hosting environment so any missing extension may result undesirable effects to user (eg. Revealed user passwords or application settings).

  • 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-24T01:40:29+00:00Added an answer on May 24, 2026 at 1:40 am

    Probably the easiest place to look is the master web.config file, which is where base settings for ASP.NET are declared. This includes <httpHandlers>, e.g.:

    <httpHandlers>
      <add verb="*" path="*.rules" type="System.Web.HttpForbiddenHandler" validate="true"/>
      <add verb="*" path="*.xoml" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false"/>
      <add path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false"/>
      <add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True"/>
      <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True"/>
      <add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True"/>
      <add path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" validate="True"/>
      <add path="*.ashx" verb="*" type="System.Web.UI.SimpleHandlerFactory" validate="True"/>
      <add path="*.asmx" verb="*" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="False"/>
      <add path="*.rem" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False"/>
      <add path="*.soap" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False"/>
      <add path="*.asax" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.ascx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.master" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.skin" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.browser" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.sitemap" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.dll.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True"/>
      <add path="*.exe.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True"/>
      <add path="*.config" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.cs" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.csproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.vb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.vbproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.webinfo" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.licx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.resx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.resources" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.mdb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.vjsproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.java" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.jsl" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.ldb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.ad" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.dd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.ldd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.sd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.cd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.adprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.lddprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.sdm" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.sdmDocument" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.mdf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.ldf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.exclude" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*.refresh" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
      <add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler" validate="True"/>
      <add path="*" verb="*" type="System.Web.HttpMethodNotAllowedHandler" validate="True"/>
    </httpHandlers>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed and setup RubyCAS-Server and RubyCAS-Client on my machine. Login works perfectly
I have installed CherryPy 3.1.0,. Here is what happens when I try to run
I'm new to PHP and have installed on Linux to boot (also a newbie).
I'm new to Linux but have to port a asp.net app to Linux platform.
I have F# 2.0 installed on Mono 2.6.7 on an OS X 10.6 machine.
I have recently installed Ubuntu Linux on my machine. This machine is on pretty
I have installed Delphi Prism and XNA Game Studio 3.0. I have managed to
I have installed Visual Studio 2008 and patch it with SP1. However, I cannot
I have installed Xperf performance analyzer from Windows SDK and captured a trace as
I have installed: Visual C# 2008 Express Visual Web Developer 2008 Express Visual Studio

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.