[Mono-aspnet-list] Apache Proxy vs mod_mono vs xsp2 problem
nickstaves at gmail.com
Thu May 7 10:34:42 EDT 2009
I have a big problem on my server and I trully speaking don't know who is
I have an old site hosted by apache + mod_mono and it's woked fine.
Now I discovered beautiful module for Apache which is proxy_module. With
this module I can easily redirect all requests to certain virtual host to
another webserver. It was perfect way to redirect asp.net sites to xsp2
I wrote another website and configured it to run through proxy to
I started xsp2 --port 8080 in screen and leaved it detached.
Assume I have www.site1.com hosted by mod_mono and www.site2.com hosted by
Now www.site1.com working fine for all pages. By the way this is secured
site which has forms authentication and request login from first page.
When I try www.site2.com I could see index.html of that site. No problems.
But I have www.site2.com/contacts.aspx that should be hosted by xsp2. When I
have tried that address first I've got login form... ooups, but I have no
authentication settings in my web.config for www.site2.com
After it I have added
<authentication mode="None" />
<allow users="*"/><allow users="?"/>
And still I have login request.
After it I realized that login form came from www.site1.com
So I've got URL http://www.site2.com/login.aspx?ReturnUrl=%2fcontacts.aspx
I knew credentials of site1 I have tried it and I got 404 because
contacts.aspx does not exist on site1
When after it I tried www.site2.com/default.aspx I've got the page... it was
from www.site1.com/default.aspx, without styles of cause.
So it's some kind of mess!
What I've done wrong?
View this message in context: http://www.nabble.com/Apache-Proxy-vs-mod_mono-vs-xsp2-problem-tp23428197p23428197.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list