asp linux mono project II.
Kategorie: linux

- apt-get install libapache2-mod-mono;
- apt-get install mono-apache-server2; /+ ASP.NET 2.0

- odkomentovat řádek v souboru /etc/apache2/mods-enabled/mod_mono.conf:
Include /etc/mono-server2/mono-server2-hosts.conf

- přidat do /etc/apache2/apache2.conf řádky:
<Location /mono>
SetHandler mono-ctrl
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
tímto lze na adrese http://localhost/mono restartovat MONO bez nutnosti restartovat Apache

Testovací soubor win.aspx:
--------------------------

<%@ Page Language="C#" %>

<script language="C#" runat="server">
void Page_Load()
{
lbHelloWorld.Text = "Hello World";
}
</script>

<html>
<body>
<asp:label id="lbHelloWorld" runat="server" />
</body>
</html>


9.10.2007 16:35:43