Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently tried deploying my extremely "odd/custom" web application and I'm having some problems.

Basically, in my code at Global.asax I have

if(context.Request.Url.AbsolutePath=="/"){ //doesn't work(yields 404 error for index.aspx)
if(context.Request.Url.AbsolutePath=="/test"){ //does work

At the moment, I am just using the simple auto configuration for Apache and mod_mono. The only thing I added was making it use .Net 2.0 and I added

ForceType application/x-asp-net

How can I make it so that it won't try to resolve / to some index file, and instead let it be handled by the application?

Note: This works perfectly using xsp alone in my debugging environment

share|improve this question
Does mod_rewrite to a single file work for you? – Matthew Iselin Feb 7 '11 at 4:23
@matt what do you mean to a singl file? – Earlz Feb 7 '11 at 16:15
Something like RewriteRule /* /Global.asax (syntax unchecked). – Matthew Iselin Feb 7 '11 at 21:31
up vote 0 down vote accepted

I ended up doing away with auto configuration and instead using to generate me an Apache configuration

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.