Re: [Mono-list] mod_mono in vhosts

2005-03-24 Thread Gonzalo Paniagua Javier
On Wed, 2005-03-23 at 06:56 +1100, Nik Derewianka wrote:
 Hi,
 
 With thanks to Rafael, the postgres stuff is working.
 
 Just one thing left with mod_mono (on suse 9.2):
 
 in my error_log i get:
 [Thu Mar 24 06:28:12 2005] [error] Not running mod-mono-server.exe 
 because no MonoApplications, MonoApplicationsConfigFile or 
 MonoApplicationConfigDir specified.
[...]
 But this looks more like its cascading from the initial startup problem.
 
 Can you put the MonoApplications directive within a VirtualHost element 
 ? or are there any other steps needed to make it work in this way  ?

You're probably using an old version of mod_mono, as this was a bug in
one of the latest releases (not the last one ;-).

-Gonzalo


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod_mono in vhosts

2005-03-24 Thread Nik Derewianka
Gonzalo Paniagua Javier wrote:
You're probably using an old version of mod_mono, as this was a bug in
one of the latest releases (not the last one ;-).
 

Suse 9.2 with mono 1.1.5, mod_mono 1.0.7  (installed via rpm -Uvh)
using apache2.0.50
Still no go with the following in my vhost file:
Alias / /srv/www/vhosts/mojo.e-media.com.au/
MonoApplications /:/srv/www/vhosts/mojo.e-media.com.au
Location /
SetHandler mono
/Location
With the error:
[error] Not running mod-mono-server.exe because no MonoApplications, 
MonoApplicationsConfigFile or MonoApplicationConfigDir specified.

Works fine when i move the above directives back into my default-server.conf
Can i trust rpm -Uvh ?? Should i do a full uninstall and reinstall ?  Or 
is mod_mono still buggy ?? (cant find the previous bug atm)

Regards,
Nik
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod_mono in vhosts

2005-03-24 Thread Gonzalo Paniagua Javier
On Fri, 2005-03-25 at 16:15 +1100, Nik Derewianka wrote:
 Gonzalo Paniagua Javier wrote:
 
 You're probably using an old version of mod_mono, as this was a bug in
 one of the latest releases (not the last one ;-).
   
 
 Suse 9.2 with mono 1.1.5, mod_mono 1.0.7  (installed via rpm -Uvh)
 
 using apache2.0.50
 
 Still no go with the following in my vhost file:
 
 Alias / /srv/www/vhosts/mojo.e-media.com.au/
 MonoApplications /:/srv/www/vhosts/mojo.e-media.com.au
 Location /
  SetHandler mono
 /Location
 
 With the error:
 [error] Not running mod-mono-server.exe because no MonoApplications, 
 MonoApplicationsConfigFile or MonoApplicationConfigDir specified.
 
 Works fine when i move the above directives back into my default-server.conf
 
 Can i trust rpm -Uvh ?? Should i do a full uninstall and reinstall ?  Or 
 is mod_mono still buggy ?? (cant find the previous bug atm)

It works for me with current version.
Can you try:

MonoApplications mojo /:/srv/www/vhosts/mojo.e-media.com.au
Location /
 MonoSetServerAlias mojo
 SetHandler mono
/Location

and see if that works for you?

-Gonzalo


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod_mono in vhosts

2005-03-24 Thread Nik Derewianka

It works for me with current version.
Can you try:
MonoApplications mojo /:/srv/www/vhosts/mojo.e-media.com.au
Location /
MonoSetServerAlias mojo
SetHandler mono
/Location
 

Copied and pasted the above into my conf, then rcapache2 restart
Syntax error on line 71 of /etc/apache2/vhosts.d/mojo.e-media.com.au.conf:
MonoApplications takes one argument, Comma separated list with virtual 
directories and real directories. One ASP.NET application will be 
created for each pair. Default: 

mojo:/install_packages/mono # rpm -qa | grep mod_mono
mod_mono-1.0.7-1.ximian.10.1
Is there any way that i can confirm that that version is the actual file 
that is installed without querying via rpm ??

Thanks for your help,
Nik
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod_mono in vhosts

2005-03-24 Thread Nik Derewianka
BTW,
I should note that it does actually work with that directive there in 
the vhost conf, its just the syntax error (perhaps erroneously) that is 
being reported.

Regards,
Nik
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] mod_mono in vhosts

2005-03-22 Thread Nik Derewianka
Hi,
With thanks to Rafael, the postgres stuff is working.
Just one thing left with mod_mono (on suse 9.2):
in my error_log i get:
[Thu Mar 24 06:28:12 2005] [error] Not running mod-mono-server.exe 
because no MonoApplications, MonoApplicationsConfigFile or 
MonoApplicationConfigDir specified.

But in my /etc/apache2/vhosts.d/mojo.e-media.com.au.conf file i have the 
following which is a combination of the vhosts template and the man 
mod_mono sample:

VirtualHost mojo.e-media.com.au:80
   ServerAdmin [EMAIL PROTECTED]
   ServerName mojo.e-media.com.au
   DocumentRoot /srv/www/vhosts/mojo.e-media.com.au
   ErrorLog /var/log/apache2/mojo.e-media.com.au-error_log
   CustomLog /var/log/apache2/mojo.e-media.com.au-access_log combined
   HostnameLookups Off
   UseCanonicalName Off
   ServerSignature On
   IfModule mod_userdir.c
   UserDir public_html
   Include /etc/apache2/mod_userdir.conf
   /IfModule
   Alias /demo /usr/share/doc/xsp/test
   MonoApplications /demo:/usr/share/doc/xsp/test
   Location /demo
   SetHandler mono
   /Location
   Directory /srv/www/vhosts/mojo.e-media.com.au
   Options Indexes FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all
   /Directory
/VirtualHost
My html pages show fine, it is only when i try to view the demo page 
that i get a 403 and the following in my vhost log:
[Thu Mar 24 06:49:10 2005] [error] [client 192.168.104.209] 
(13)Permission denied: access to /demo/ denied

But this looks more like its cascading from the initial startup problem.
Can you put the MonoApplications directive within a VirtualHost element 
? or are there any other steps needed to make it work in this way  ?

Regards,
Nik
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list