[Mono-dev] mod_mono config problem

Julien De Groote julien.degroote at tremplin-utc.net
Tue Feb 7 06:51:13 EST 2006


Hi

I have a problem configuring an application to run at 2 different
apache location and within 2 different mod-mono-server. Here is the
configuration :
        LoadModule mono_module modules/mod_mono.so

        MonoRunXSP True
        AddHandler mono .aspx .ashx .asmx .ascx .asax .config .ascx

<VirtualHost *:80>

        Alias /mono "/usr/lib/xsp/test"
        MonoApplications default "/mono:/usr/lib/xsp/test"
        Alias /mono2 "/usr/lib/xsp/test"
        MonoApplications test2 "/mono2:/usr/lib/xsp/test"
        <Directory /usr/lib/xsp/test>
                #AddHandler mono .aspx .ashx .asmx .ascx .asax .config .ascx
                SetHandler mono
                Order allow,deny
                Allow from all
                DirectoryIndex index.aspx
        </Directory>

        <Location /mono-ctrl>
                SetHandler mono-ctrl
                Order deny,allow
                Allow from 127.*
                Allow from 192.168.1.*
        </Location>
</VirtualHost>

I get both locations pointing to the correct application and 2
mod-mono-servers running with no problem but when I access /mono2 I
get the source .aspx file in plain text while /mono runs fine.
I get the same result if I copy the application to another directory
and make /mono2 point to that directory.

In error_log, I get the following message when apache starts :

Processing config directory: /etc/apache/modules.d/*.conf
 Processing config file: /etc/apache/modules.d/10_mod_ssl.conf
 Processing config file: /etc/apache/modules.d/70_mod_mono.conf
 Processing config file: /etc/apache/modules.d/70_mod_php.conf
Processing config directory: /etc/apache/vhosts.d/*.conf
 Processing config file: /etc/apache/vhosts.d/00_default_vhost.conf
 Processing config file: /etc/apache/vhosts.d/01_usec.ath.cx.conf
 Processing config file: /etc/apache/vhosts.d/02_freesett.ath.cx.conf
 Processing config file: /etc/apache/vhosts.d/default-ssl.conf
[Tue Feb  7 12:46:32 2006] [error] (2)No such file or directory: Not
running mod-mono-server.exe because no MonoApplications,
MonoApplicationsConfigFile or MonoApplicationConfigDir
[Tue Feb  7 12:46:32 2006] [error] (2)No such file or directory: Not
running mod-mono-server.exe because no MonoApplications,
MonoApplicationsConfigFile or MonoApplicationConfigDir
[Tue Feb  7 12:46:32 2006] [error] (2)No such file or directory: Not
running mod-mono-server.exe because no MonoApplications,
MonoApplicationsConfigFile or MonoApplicationConfigDir
[Tue Feb  7 12:46:32 2006] [error] (2)No such file or directory: Not
running mod-mono-server.exe because no MonoApplications,
MonoApplicationsConfigFile or MonoApplicationConfigDir
[Tue Feb  7 12:46:32 2006] [error] (2)No such file or directory: Not
running mod-mono-server.exe because no MonoApplications,
MonoApplicationsConfigFile or MonoApplicationConfigDir
[Tue Feb  7 12:46:32 2006] [notice] Apache/1.3.34 (Unix)  (Gentoo)
PHP/4.4.0-pl1-gentoo mod_mono/1.1.13 configured -- resuming normal
operations
[Tue Feb  7 12:46:32 2006] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Tue Feb  7 12:46:32 2006] [notice] Accept mutex: sysvsem (Default: sysvsem)
Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.



Anyone know what is going on ?

Thanks

--
Julien De Groote
julien.degroote at tremplin-utc.net



More information about the Mono-devel-list mailing list