silentIm
August 2nd, 2009, 06:49 AM
Hi all,
i installed both mod_mono and mod_mono2 for apache from a tutorial. I only modified etc/apache2/site_enabled/mod_mono.conf as suggested by the included comment to enable .net 2.0
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
DirectoryIndex index.aspx
Include /etc/mono-server2/mono-server2-hosts.conf
and commented out the 1.0 .net module. I don't edit the default /etc/mono-server2/mono-server2-hosts.conf
<IfModule mod_mono.c>
MonoUnixSocket default /tmp/.mod_mono_server2
MonoServerPath default /usr/bin/mod-mono-server2
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
MonoApplicationsConfigDir default /etc/mono-server2
MonoPath default /usr/lib/mono/2.0:/usr/lib
</IfModule>
Apparently, when I try to access the index.aspx, the module does not parse the document. My firefox just download it, not displaying it. The apache knows that it is a default page of the directory. And if I use phpinfo(), the loaded module is mod_mono.
Apache version: Apache/2.2.11 (Ubuntu) mod_mono/2.0 PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch
Do I need to compile it first before deploy it? How to fix this?
P.S : I am sorry for the title. I mean asp.net (.aspx) not the old asp(.asp).
i installed both mod_mono and mod_mono2 for apache from a tutorial. I only modified etc/apache2/site_enabled/mod_mono.conf as suggested by the included comment to enable .net 2.0
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
DirectoryIndex index.aspx
Include /etc/mono-server2/mono-server2-hosts.conf
and commented out the 1.0 .net module. I don't edit the default /etc/mono-server2/mono-server2-hosts.conf
<IfModule mod_mono.c>
MonoUnixSocket default /tmp/.mod_mono_server2
MonoServerPath default /usr/bin/mod-mono-server2
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
MonoApplicationsConfigDir default /etc/mono-server2
MonoPath default /usr/lib/mono/2.0:/usr/lib
</IfModule>
Apparently, when I try to access the index.aspx, the module does not parse the document. My firefox just download it, not displaying it. The apache knows that it is a default page of the directory. And if I use phpinfo(), the loaded module is mod_mono.
Apache version: Apache/2.2.11 (Ubuntu) mod_mono/2.0 PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch
Do I need to compile it first before deploy it? How to fix this?
P.S : I am sorry for the title. I mean asp.net (.aspx) not the old asp(.asp).