Skip to content

Commit

Permalink
change to use /redis custompath
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Apr 27, 2012
1 parent 2e55894 commit 7d4610c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/RedisWebServices.Host/AjaxClient/js/RedisClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RedisClient = function(baseUri) {
var baseUri = document.location.href.indexOf('#') != -1
? document.location.href.substr(0, document.location.href.indexOf('#'))
: document.location.href;
baseUri = baseUri.replace('default.htm', '').replace('debug.htm', '').replace('AjaxClient', 'api');
baseUri = baseUri.replace('default.htm', '').replace('debug.htm', '').replace('AjaxClient', 'redis');
this.gateway = new JsonServiceClient(baseUri);
}
RedisClient.errorFn = function() {
Expand Down
5 changes: 3 additions & 2 deletions src/RedisWebServices.Host/AjaxClient/redisadmin-compiled.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 19 additions & 4 deletions src/RedisWebServices.Host/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,28 @@
</configSections>
<appSettings>
<add key="RedisHostAddress" value="localhost:6379"/>
<add key="RedisDb" value="37"/>
<add key="RedisDb" value="0"/>
<add key="DefaultRedirectPath" value="AjaxClient"/>
</appSettings>
<connectionStrings/>

<location path="redis">
<system.web>
<httpHandlers>
<add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/>
</httpHandlers>
</system.web>

<!-- Required for IIS 7.0 -->
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add path="*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" />
</handlers>
</system.webServer>
</location>

<system.web>
<!--
Set compilation debug="true" to insert debugging
Expand Down Expand Up @@ -67,7 +84,7 @@
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>

<add path="api*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/>
<add path="redis*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Expand Down Expand Up @@ -99,8 +116,6 @@
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add path="api" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" />
</handlers>
</system.webServer>

Expand Down

0 comments on commit 7d4610c

Please sign in to comment.