[Mono-list] Apache + mod_mono + PostgreSql on Windows

Andrus kobruleht2 at hot.ee
Thu Dec 11 17:03:41 EST 2008


> The Mono community is much more adept at helping with specific
> questions / issues than directing your entire project.  I'd say just
> get started and get in touch with the list when you run into problems.

Thank you.
I installed Apache 
Also installed Mono 2.2 preview to c:\Mono 

To the end of

C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

I added line

Include conf/mod_mono.conf

mod_mono.conf  in the same directory contains

<IfModule !mod_mono.c>
    LoadModule mono_module modules/mod_mono.so
    AddType application/x-asp-net .aspx
    AddType application/x-asp-net .asmx
    AddType application/x-asp-net .ashx
    AddType application/x-asp-net .asax
    AddType application/x-asp-net .ascx
    AddType application/x-asp-net .soap
    AddType application/x-asp-net .rem
    AddType application/x-asp-net .axd
    AddType application/x-asp-net .cs
    AddType application/x-asp-net .vb
    AddType application/x-asp-net .master
    AddType application/x-asp-net .sitemap
    AddType application/x-asp-net .resources
    AddType application/x-asp-net .skin
    AddType application/x-asp-net .browser
    AddType application/x-asp-net .webinfo
    AddType application/x-asp-net .resx
    AddType application/x-asp-net .licx
    AddType application/x-asp-net .csproj
    AddType application/x-asp-net .vbproj
    AddType application/x-asp-net .config
    AddType application/x-asp-net .Config
    AddType application/x-asp-net .dll
    DirectoryIndex index.aspx
    DirectoryIndex Default.aspx
    DirectoryIndex default.aspx
</IfModule>


AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx
  <IfModule mod_dir.c>
   DirectoryIndex index.aspx default.aspx
  </IfModule>

  <VirtualHost *:80>
   ServerName localhost
   DocumentRoot "C:\Mono\lib\xsp\test"
   MonoDocumentRootDir "C:/Mono/lib/xsp/test"
   MonoApplications "/:./"
  </VirtualHost>

Restarted Apache.

http://localhost still shows It works! page.

How to run asp2 .net test application ?

Andrus. 


More information about the Mono-list mailing list