[Mono-aspnet-list] Apache + mod-mono serving httpd/unix-directory every so often
mzabani at gmail.com
Sat Nov 19 12:23:49 EST 2011
Those were my thoughts at first, but the scary thing is that
www.foo.com.tld redirects correctly to foo.com !
I tried putting the rewrite rules outside the context of the virtual host
(more specifically, in the server's context), but if I do that then the
redirects just don't work.
I also tried putting the rewrite commands inside a <Directory
/home/dezege/Website> and inside a <Location />, both in the server's
context, but still no redirects.
In the end, my only option was putting the redirect instructions inside the
The trouble is that the problem is intermittent, and that it happens even
if I visit foo.com directly (which should be found by Apache, since it is
the ServerName of my main virtual host).
I just want to make sure that this is not a problem with mod-mono not
returning the Content-Type header sometimes, before I go ask to the apache
I also feel bad that I don't know how to read or generate any logs of
what's happening in the way mod-mono processes requests. Is there a
resource somewhere on mod-mono's logs?
Thanks a lot,
On Sat, Nov 19, 2011 at 1:29 PM, Robert Jordan <robertj at gmx.net> wrote:
> On 18.11.2011 23:02, Marcelo Zabani wrote:
> > 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.
> My apache-foo is a bit rusty, but I believe that you must add *all*
> host names you want to handle to the VirtualHost section.
> Your nice canonical redirects from "www.foo.com.tld" to "foo.com"
> are of no use if Apache doesn't know upfront that it has to handle
> these hosts.
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-aspnet-list