View previous topic :: View next topic |
Author |
Message |
jesscurley -
Joined: 01 Aug 2009 Posts: 3
|
Posted: Sun Aug 02, 2009 2:24 pm Post subject: asp.net mvc |
|
|
Hello
Does Abyss support mvc applications.
I am having a tinker and can't seem to get anything other than the launch page to open. Do I need to do something special with URL Routing ?
Many Thanks |
|
Back to top |
|
 |
aprelium-support -
Joined: 20 Feb 2009 Posts: 356
|
Posted: Mon Aug 03, 2009 10:36 am Post subject: Re: asp.net mvc |
|
|
jesscurley wrote: |
Does Abyss support mvc applications.
I am having a tinker and can't seem to get anything other than the launch page to open. Do I need to do something special with URL Routing ?
Many Thanks |
Please contact us at support@aprelium.com to receive a modified version of Abyss Web Server for testing MVC applications. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
jesscurley -
Joined: 01 Aug 2009 Posts: 3
|
Posted: Tue Aug 11, 2009 9:11 am Post subject: mvc |
|
|
I have got Abyss working with mvc using the following url redirection rules which append /rewritten.aspx to the url. ( my virtual path is /apps/ ). This points everything in /apps to ASP.NET.
The contents folder is excluded so the ccs and images load as they should.
The code in global.asax then strips it off
Code: |
protected void Application_BeginRequest(Object sender, EventArgs e)
{
HttpApplication app = sender as HttpApplication;
if (app != null)
if (app.Request.AppRelativeCurrentExecutionFilePath.Contains("/rewritten.aspx"))
app.Context.RewritePath(
app.Request.Url.PathAndQuery.Replace("/rewritten.aspx", "")
);
}
|
Code: |
<rule>
<enabled>
yes
</enabled>
<pattern>
/apps/$
</pattern>
<casesensitive>
yes
</casesensitive>
<subrequests>
yes
</subrequests>
<redirect>
0
</redirect>
<replacement>
/apps/default.aspx
</replacement>
<qsa>
no
</qsa>
<escape>
yes
</escape>
<nextaction>
2
</nextaction>
</rule>
<rule>
<enabled>
yes
</enabled>
<pattern>
^/apps/(.*)
</pattern>
<casesensitive>
no
</casesensitive>
<subrequests>
no
</subrequests>
<redirect>
0
</redirect>
<replacement>
$0/rewritten.aspx
</replacement>
<qsa>
yes
</qsa>
<escape>
yes
</escape>
<nextaction>
0
</nextaction>
<conditions>
<condition>
<variable>
REQUEST_URI
</variable>
<operator>
not_match
</operator>
<value>
\.aspx$
</value>
<casesensitive>
yes
</casesensitive>
</condition>
<condition>
<variable>
REQUEST_URI
</variable>
<operator>
not_match
</operator>
<value>
Content
</value>
<casesensitive>
yes
</casesensitive>
</condition>
</conditions>
</rule>
| [/code] |
|
Back to top |
|
 |
aprelium-support -
Joined: 20 Feb 2009 Posts: 356
|
Posted: Tue Aug 11, 2009 11:04 am Post subject: Re: mvc |
|
|
jesscurley wrote: | I have got Abyss working with mvc using the following url redirection rules which append /rewritten.aspx to the url. ( my virtual path is /apps/ ). This points everything in /apps to ASP.NET.
|
Glad to know that the issue was quickly solved.
We are thinking of adding MVC support natively in the next 2.7 version, any suggestions would be much appreciated. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
manupinot -
Joined: 23 Nov 2009 Posts: 1
|
Posted: Mon Nov 23, 2009 9:52 am Post subject: mvc |
|
|
To jesscurley:
Thank you for your great post, I have MVC working now with Abyss. I don't use a default.aspx so I change the first rule to point to /Home/Index when the root is requested.
One thing that i haven't been able to resolve is enabling cookie less Session, if i try the CSS and images are not found... |
|
Back to top |
|
 |
chromebuster -
Joined: 02 Jan 2010 Posts: 32 Location: boston, USA
|
Posted: Sun Jul 25, 2010 3:57 am Post subject: |
|
|
And I'm just curious. When is the estimated date for the next version of Abyss Web server to come out? |
|
Back to top |
|
 |
|