On Mon, 2009-07-20 at 12:22 -0700, Batchwood wrote: > Hi All, > In a regular apache configuration file, you can set up a "catch all" > virtualHost so that if a visitor or a bot tries to visit any non-existent > site on you server, they get a 404 error. Here's what I mean: > > <VirtualHost *:80> > DocumentRoot /var/www/ > ServerName bogus > ErrorDocument 404 "/unknown.html" > </VirtualHost> > > <VirtualHost *:80> > DocumentRoot /var/www > ServerName www.domain.com > etc ..... > </VirtualHost> > > With this basic settings, only those visiting www.domain.com get through, > all other misspelled, removed sites are sent to an error 404 page; however, > although this is easy in regular apache, I can't get it to work in Mono.
I don't see mono involved anywhere in your configuration. Perhaps you should ask in the apache list... -Gonzalo _______________________________________________ Mono-aspnet-list mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
