[Mono-aspnet-list] Apache + mod-mono serving httpd/unix-directory every so often
Marcelo Zabani
mzabani at gmail.com
Fri Nov 18 17:02:58 EST 2011
I'm having a problem of a blank file of type httpd/unix-directory being
served every so often.
I have searched google and read somewhere that this happens when Apache
can't find a virtual host to serve the request. What troubles me is why
does this happen only once in a while with the same configuration.
I'm getting desperate as my knowledge of apache is very minimal, and my
website is already online.
I'm using Mono 2.10.5, mod_mono 2.10 with .NET 4, and apache 2.2.21-r1
My apache configuration file (httpd.conf) is a standard Gentoo httpd.conf
that comes with apache, with these lines added:
*# My conf!
KeepAlive Off
Listen 0.0.0.0:80
NameVirtualHost *:80
ServerName elomeno.com*
httpd.conf has a directive to include all files named
/etc/apache2/vhosts.d/*.conf, and everything under
/etc/apache2/modules.d/*.conf, the latter being the one responsible for
loading the mod_mono module.
Then, there are two files I created, /etc/apache2/vhosts.d/elomeno.include
and /etc/apache2/vhosts.d/elomeno.conf
This is *elomeno.conf*:
*Listen 80
<VirtualHost *:80>
ServerName elomeno.com
Include /etc/apache2/vhosts.d/elomeno.include
</VirtualHost>*
And this is *elomeno.include*:
*RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.elomeno\.com(\.br)? [NC,OR]
RewriteCond %{HTTP_HOST} =elomeno.com.br [NC]
RewriteRule ^/(.*) http://elomeno.com/$1 [R,L]
ServerAdmin webmaster at elomeno.com
DocumentRoot /home/dezege/Website
ErrorLog /home/dezege/apache-errors.log
TransferLog /home/dezege/apache-transfer.log
MonoServerPath elomeno.com "/usr/bin/mod-mono-server4"
# MonoDebug elomeno.com true
MonoApplications elomeno.com "/:/home/dezege/Website"
<Location />
Allow from all
Order allow,deny
MonoSetServerAlias elomeno.com
SetHandler mono
</Location>
<Location /Content/>
SetHandler default-handler
</Location>
<Location /Scripts/>
SetHandler default-handler
</Location>
<Location /mono>
SetHandler mono-ctrl
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>*
This is a rather standard MVC3 Web App. What could be happening?
Thanks in advance,
--
Marcelo Zabani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20111118/a7beebe3/attachment.html
More information about the Mono-aspnet-list
mailing list