[Mono-aspnet-list] Problems configuring apache2 + mono

Francisco M. Marzoa Alonso francisco at marzoa.com
Tue Mar 29 09:50:05 EDT 2011


News on this:

I've tried changing mono configuration file to:

<IfModule mod_mono.c>
	AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
	DirectoryIndex index.aspx
	MonoAutoApplication enabled
	MonoServerPath "/usr/bin/mod-mono-server2"
</IfModule>

And removing my webapp file, but now when I try to open the
helloworld.aspx file, it sent its contents to the browser, instead of
executing it.

I do not understand why. As you see, I put .aspx extension within mono
configuration file, and I put "SetHandler mono" on the virtual host
configuration also.

?


El 29/03/11 13:16, Francisco M. Marzoa Alonso escribió:
> More information:
> 
> I get the following message on /var/log/apache2/error.log
> 
> "Failed to connect to mod-mono-server after several attempts to spawn
> the process."
> 
> How may I debug this deeper?
> 
> 
> 
> El 29/03/11 10:56, Francisco M. Marzoa Alonso escribió:
>> Hello,
>>
>> I'm having problems configuring apache2 and mono for using ASP.net on
>> Ubuntu.
>>
>> I've installed everything needed, and the module seems to be working,
>> but I've not been able to run a simple helloworld on a virtual host.
>>
>> I think the problem is on the webapp configuration file.
>>
>> My virtualhost is defined as follows:
>>
>> <VirtualHost *:80>
>> 	ServerAdmin webmaster at localhost
>> 	ServerName fake.domain.com
>> 	DocumentRoot /var/www/fake.domain.com/web/
>> 	ErrorLog /var/www/fake.domain.com/logs/error.log
>> 	LogLevel warn
>> 	CustomLog /var/www/fake.domain.com/logs/access.log combined
>> 	<Directory /var/www/fake.domain.com/web/>
>> 		Options Indexes FollowSymLinks MultiViews
>>                 AllowOverride All
>>                 Order allow,deny
>>                 Allow from all
>> 		SetHandler mono
>>         	DirectoryIndex index.aspx index.html
>> 	</Directory>
>> </VirtualHost>
>>
>> I've created all needed directories and server itself is working fine if
>> I do not use mono. I mean that if I move my browser to
>> http://fake.domain.com/ it shows me the contents of
>> /var/www/fake.domain.com/web directory without problems.
>>
>> But when I create a mono aplication on /etc/mono-server2/ it does not
>> run as expected. I've created one file called fake.domain.com.webapp
>> with the following contents:
>>
>> <apps>
>>         <web-application>
>>                 <name>FakeDomain</name>
>> 		<vpath>/</vpath>
>>                 <path>/var/www/fake.domain.com/web</path>
>>                 <vhost>fake.domamin.com</vhost>
>>         </web-application>
>> </apps>
>>
>> But if I try to open http://devel.sharpbear.com I got a 503 Service
>> Temporarily Unavailable after a while waiting for page to load.
>>
>> "The server is temporarily unable to service your request due to
>> maintenance downtime or capacity problems. Please try again later."
>>
>> Any hints?
>>
>> Thanks a lot in advance,
>> _______________________________________________
>> Mono-aspnet-list mailing list
>> Mono-aspnet-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
> 
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list



More information about the Mono-aspnet-list mailing list