[Mono-list] mod_mono problem

Pedro Sobota pedro at sobota.net
Fri Dec 29 12:40:27 EST 2006


Thanks - I didn't know they were related. I can see it's now working
from the compilation error on the home page:

"The type or namespace 'Economize' can not be found."

I have tried setting MonoDocumentRootDir, to no avail. I think
everything is pointing to the right directory, and Economize.dll is
there in /bin.

Any advice? What is MonoApplications for? (not AddMonoApplications)

My page begins with:

<%@ Page %>
<%@ Import Namespace="Economize.Site" %>

Thanks, Pedro

==================

<VirtualHost 66.98.226.49:80>
        ServerName   zzzzz:80
        ServerAlias  zzzzz
        ServerAdmin  pedro at sobota.net
        AddMonoApplications default "/:/var/www/vhosts/zzzzz/httpdocs"
        MonoDocumentRootDir "/var/www/vhosts/zzzzz/httpdocs"
        #MonoApplications default "/:/var/www/vhosts/zzzzz/httpdocs"
        #UseCanonicalName Off
        #SuexecUserGroup         username groupname
        DocumentRoot /var/www/vhosts/zzzzz/httpdocs
        CustomLog  /var/www/vhosts/zzzzz/statistics/logs/access_lo$
        ErrorLog   /var/www/vhosts/zzzzz/statistics/logs/error_log
        <Location />
                SetHandler mono
                Options -Includes +ExecCGI Indexes
        </Location>
</VirtualHost>

Robert Jordan escreveu:
> Pedro Sobota wrote:
>   
>> Hi,
>>
>> After much debugging, my configuration still yields 503 Internal Server
>> Error, only now no errors come up on the Apache error logs. If I comment
>> the AddMonoApplications directive, the pages show but I guess they then
>> don't go thru Mono as they are served as HTML. Applying the directive, I
>> get 503. Is there something wrong with my configuration?
>>     
>
>   
>> <VirtualHost 66.98.226.49:80>
>>         ServerName   [domain]:80
>>         ServerAlias  [domain]
>>         ServerAdmin  pedro at sobota.net
>>         AddMonoApplications app "/:/var/www/vhosts/[domain]/httpdocs"
>>     
>
> Here you're using the instance called "app"...
>
>   
>>         DocumentRoot /var/www/vhosts/[domain]/httpdocs
>>         <Directory /var/www/vhosts/[domain]/httpdocs>
>>     
>
> ... but the handler is only set for the "default" instance:
>
>   
>>                 SetHandler mono
>>                 Options -Includes +ExecCGI Indexes
>>         </Directory>
>> </VirtualHost>
>>     
>
> Try "AddModMonoApplications default ..."
>
> Robert
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>   



More information about the Mono-list mailing list