[Mono-list] mod_mono & xsp
Giuseppe Greco
giuseppe.greco@agamura.com
Sat, 05 Feb 2005 22:28:08 +0100
Neil,
Yes, finally I was able to get mod_mono and xsp working on FC3!
Here below is the procedure, step-by-step:
1. Create a file named mono.conf and save it into /etc/httpd/cond.d:
LoadModule mono_module modules/mod_mono.so
MonoApplications "/demo:/usr/share/doc/xsp/test"
Alias /demo "/usr/share/doc/xsp/test"
<Directory /usr/share/doc/xsp/test>
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmy
</Directory>
2. Start mod-mono-server:
mod-mono-server --root /usr/local/share/doc/xsp
--applications /demo:. --nonstop &
3. cd to /tmp and type:
chmod 666 mod_mono_server
4. Restart apache:
/etc/init.d/httpd restart
5. Open the following URL:
http://localhost/demo
That is it! As I told before, it would be nice
to either have a script under /etc/init.d making
that automatically, or have mod_mono invoking
mod-mono-server automatically (as it should).
j3d.
On Sat, 2005-02-05 at 11:50 -0700, Neil Zanella wrote:
> BTW, anyone get mod_mono and xsp working on FC3?
>
> Thanks,
>
> Neil
>
> On Sat, 05 Feb 2005 13:41:21 -0500, Gonzalo Paniagua Javier
> <gonzalo@ximian.com> wrote:
> > On Sat, 2005-02-05 at 15:30 +0100, Giuseppe Greco wrote:
> > > Hi all,
> > >
> > > > > mod_mono is configured to run mod-mono-server automatically, isn't it?
> > > > >
> > > > no, at least not on my Mandrake machine. I had to start it with:
> > > > mono /usr/bin/mod-mono-server.exe --root /var/www/html/mtest --
> > > > applications /mtest:/var/www/html/mtest --nonstop &
> > > > The --root parameter tells the ASP server where the aspx documents are
> > > > and the --application parameter also needs to proint to the dir of the
> > > > example.
> > > > And then change the rights on /tmp/mod_mono_server using:
> > > > chmod 666 /tmp/mod_mono_server
> > > > before it worked.
> > > > Hope that helps...
> > >
> > > starting mod-mono-server first, and then httpd, I'm able to serve
> > > ASP.NET pages... That means the documentation is wrong.
> >
> > Where *exactly* is the documentation wrong?
> >
> > -Gonzalo
> >
> > _______________________________________________
> > Mono-list maillist - Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
>
>
--
----------------------------------------
Giuseppe Greco
::agamura::
phone: +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email: giuseppe.greco@agamura.com
web: www.agamura.com
----------------------------------------