Difference between revisions of "ASP.NET with Apache"

From ArchWiki
Jump to navigation Jump to search
m (Bot: Removing from Category:HOWTOs (English))
(put article summary after block templates)
Line 1: Line 1:
[[Category: Web Server (English)]] [[Category: Daemons and system services (English)]]
+
[[Category: Web Server (English)]]
 +
[[Category: Daemons and system services (English)]]
 +
{{merge|Apache}}
 
{{Article summary start| Summary }}
 
{{Article summary start| Summary }}
 
{{Article summary text|Describes how to show ASP.NET-sites under [[Apache]] by using [http://www.mono-project.com/Mod_mono Mod_Mono]}}
 
{{Article summary text|Describes how to show ASP.NET-sites under [[Apache]] by using [http://www.mono-project.com/Mod_mono Mod_Mono]}}
Line 9: Line 11:
 
-->
 
-->
 
{{Article summary end}}
 
{{Article summary end}}
{{merge|Apache}}
 
 
From [http://www.mono-project.com/Mod_mono Mod_Mono's site]:
 
From [http://www.mono-project.com/Mod_mono Mod_Mono's site]:
 
:"''Mod_Mono is an Apache 2.0/2.2 module that provides ASP.NET support for the web's favorite server, Apache (http://httpd.apache.org).''"
 
:"''Mod_Mono is an Apache 2.0/2.2 module that provides ASP.NET support for the web's favorite server, Apache (http://httpd.apache.org).''"

Revision as of 13:43, 26 August 2011

Merge-arrows-2.pngThis article or section is a candidate for merging with Apache.Merge-arrows-2.png

Notes: please use the second argument of the template to provide more detailed indications. (Discuss in Talk:ASP.NET with Apache#)

Template:Article summary start Template:Article summary text Template:Article summary heading Template:I18n entry Template:Article summary end From Mod_Mono's site:

"Mod_Mono is an Apache 2.0/2.2 module that provides ASP.NET support for the web's favorite server, Apache (http://httpd.apache.org)."

Installing

The setup requires Template:Package Official and Template:Package Official for Apache compliance. Package Template:Package Official is a simple webserver for ASP.NET, optionally installed for testing the configuration.

 pacman -S mono mod_mono xsp

Configuring

Edit Template:Filename and add the following line:

 Include /etc/httpd/conf/mod_mono.conf

Finally, restart apache with:

 /etc/rc.d/httpd restart

Now, Apache should be able to show ASP.NET-pages.

AutoHosting

Further details: http://www.mono-project.com/AutoHosting

With this setting, configuring apache for each deployment is no longer needed; just place the application in any directory within html-root and it will be promptly auto-configured. Add the following lines to Template:Filename to enable the option:

 # Choose ASP2.0 support instead of the default 1.0
 MonoServerPath "/usr/bin/mod-mono-server2"
 MonoAutoApplication enabled

Testing

If xsp is installed and html-path is Template:Filename, then open a browser and access http://server/xsp/ to see an overview over the ASP.NET-testfiles.