Thomas Zoechling wrote:
Jonathan Mezach wrote:
Hello there,
I'm having some problems getting mod_mono to work on my Slackware 10.1 with Apache 2 installed. By default Slackware 10.1 comes with Apache 1.3, so I didn't install that package and got an Apache 2 package from www.linuxpackages.net (I need Apache 2 for SubVersion stuff). Then I downloaded and installed mono 1.1.6 and libgdiplus. Then I got the latest XSP and mod_mono sources, compiled and installed them. XSP seems to work fine, even the .NET 2.0 test version works fine. I then tried running mod_mono, but for some reason this fails. Whenever I try to access a page it just doesn't compile it and spits out the source ASPX file instead.
I tried installing Apache 2 from source and when I installed mod_mono on that it worked. Problem is that I've got Apache 2 set up on my machine the way I want it, so it would be much more convenient to just use what I've already got installed. I don't really see why it wouldn't work, but I guess it has something to do with where the files are located. I tried doing a diff on the configuration files, but except for the obvious differences in paths I couldn't really find a problem. Some help with this would be much appreciated.
Greetings,
Jonathan Mezach
Did you set a Handler for your aspx directory etc? eg:
<Directory /usr/share/doc/xsp/test> SetHandler mono <IfModule mod_dir.c> DirectoryIndex index.aspx </IfModule> </Directory>
I've created a mod_mono.conf file and put it in /etc/apache2. Then I added an Include line at the bottom of the main httpd.conf file. Then I put the following into the mod_mono.conf file:
# mod_mono.conf
# Acthung! This file may be overwritten # Use 'include mod_mono.conf' from other configuration file # to load mod_mono module.
LoadModule mono_module /usr/lib/apache2/mod_mono.so
Alias /demo "/usr/local/share/doc/xsp/test" MonoApplications "/demo:/usr/local/share/doc/xsp/test"
<Directory /usr/local/share/doc/xsp/test>
SetHandler mono
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>Strange thing is that when I access this directory using http://localhost/demo it doesn't access the index.aspx file, so it seems like its not actually reading that block for some reason and might thus not be streaming stuff to XSP, but that's just a guess.
Some links:
http://www.gotmono.net/documentation/mod-mono-howto.html
http://www.codeproject.com/cpnet/introtomono2.asp?df=100&forumid=159057&exp=0&select=1061657
Thomas
smime.p7s
Description: S/MIME Cryptographic Signature
