Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# tdanz 9/5/2005 8:17 AM
Hi!

I have the problem that any CSS below the mono-server application is sometimes working and sometimes not. Also a normal HTML file is not workig correctly in the ASP.NET folder (so it has nothing directly to do with asp.net) but it works in a different one (where no ASP.NET application is registered).

Here is my apache configuration. Maybe somebody can see something wrong.

# Default configuration, don't edit it!
IfModule mod_mono.c
MonoUnixSocket /tmp/.mod_mono_server
MonoServerPath /usr/share/dotnet/bin/mod-mono-server.exe
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
MonoApplicationsConfigDir /etc/mono-server
MonoPath /usr/share/dotnet/lib:/usr/lib:
# start /etc/mono-server/conf.d/cuyahoga/10_cuyahoga
Alias /cuyahoga /var/kunden/www/web0/cuyahoga
Directory /var/kunden/www/web0/cuyahoga
SetHandler mono
IfModule mod_dir.c
DirectoryIndex index.aspx default.aspx Default.aspx
/IfModule
/Directory
# end /etc/mono-server/conf.d/cuyahoga/10_cuyahoga
/IfModule


thx
Thomas
# martijnb 9/5/2005 9:19 AM
Brrr, sometimes it works and sometimes not. Definately not the kind of error you'd like to see.

I see you're using Apache 1.3. Is that already fully supported with mod_mono?

Now for a possible fix: replace 'SetHandler mono' with 'AddHandler mono .aspx .ashx .config .ascx .asmx .asax .cs'. I don't know if it is supported with Apache 1.3 but on Apache 2.0 this makes sure that non ASP.NET extensions (like .html and .css) are handled by Apache itself and not by Mono.
# tdanz 9/5/2005 2:00 PM
wow thx :) ... that fixed the CSS problem. And it also works with Apache 1.3!
cu
Thomas
# martijnb 9/5/2005 3:11 PM
Nice to see that it works. It was kind of a wild guess, because I have a working mono configuration with that setting, but I'm not really sure if that is the best way to do it.