Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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)
  Response.Write("foo);
}
if(context.Request.Url.AbsolutePath=="/test"){ //does work
  Response.Write("bar");
}

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
add comment

1 Answer

up vote 0 down vote accepted

I ended up doing away with auto configuration and instead using http://go-mono.com/config-mod-mono/ to generate me an Apache configuration

share|improve this answer
add comment

Your Answer

 
discard

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.