https://wiki.archlinux.org/api.php?action=feedcontributions&user=TrevorNT&feedformat=atomArchWiki - User contributions [en]2024-03-28T13:54:23ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=ASP.NET_with_Apache&diff=253994ASP.NET with Apache2013-04-13T23:05:09Z<p>TrevorNT: Changed "/etc/rc.d/httpd restart" to "systemctl restart httpd.service".</p>
<hr />
<div>[[Category:Web Server]]<br />
{{merge|Apache}}<br />
{{Article summary start| Summary }}<br />
{{Article summary text|Describes how to show ASP.NET-sites under [[Apache]] by using [http://www.mono-project.com/Mod_mono Mod_Mono]}}<br />
{{Article summary end}}<br />
From [http://www.mono-project.com/Mod_mono Mod_Mono's site]:<br />
:"''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/).''"<br />
<br />
==Installing==<br />
The setup requires {{Pkg|mono}} and {{Pkg|mono_mod}} for Apache compliance. Package {{Pkg|xsp}} is a simple webserver for ASP.NET, optionally installed for testing the configuration.<br />
pacman -S mono mod_mono xsp<br />
<br />
==Configuring==<br />
Edit {{ic|/etc/httpd/conf/httpd.conf}} and add the following line:<br />
Include /etc/httpd/conf/mod_mono.conf<br />
<br />
Finally, restart apache with:<br />
systemctl restart httpd.service<br />
<br />
Now, Apache should be able to show ASP.NET-pages.<br />
<br />
===AutoHosting===<br />
:''Further details: http://www.mono-project.com/AutoHosting''<br />
<br />
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 {{ic|/etc/httpd/conf/httpd.conf}} to enable the option:<br />
# Choose ASP2.0 support instead of the default 1.0<br />
MonoServerPath "/usr/bin/mod-mono-server2"<br />
MonoAutoApplication enabled<br />
<br />
==Testing==<br />
If xsp is installed and html-path is {{ic|/httpd/html}}, then open a browser and access http://server/xsp/ to see an overview over the ASP.NET-testfiles.</div>TrevorNT