Mono 2.4, AutoHosting and MVC

Can mod_mono AutoHosting be changed to support ASP.NET? ATM doesn’t really work: The ./works link , but the runtime generally ignores Global.asax and does not comply with routing conventions.

+3
source share
1 answer

The goal of AutoHosting in Mono is to make it easy for someone to quickly get an ASP.NET site hosted in Mono by reducing the effort required to configure the server; however, he does this by placing file types that have been configured as ASP.NET file types. You can find the file extensions that it is configured to host in the mod_mono.conf file.

Since MVC Routing avoids the use of file extensions, this is probably not a good solution for MVC hosting. However, if you absolutely must use AutoHosting, you can add the following to your mod_mono.conf file so that all content for the server serves as x-asp-net content: ForceType / x-asp-net application

This has wider implications, so I cannot say that I recommend it.

Apache, , , mod_mono .

+3

Source: https://habr.com/ru/post/1705610/


All Articles