Web.config 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <connectionStrings>
  4. <add name="CB55128ConnectionString" connectionString="server=119.23.72.139;database=CB55128;uid=sa;pwd=NK4Qwql8Z?csv(XNew;Connect Timeout=30;persist security info=false;Pooling=true;" providerName="System.Data.SqlClient"/>
  5. </connectionStrings>
  6. <appSettings>
  7. <add key="blackips" value="192.168.1.200;"/>
  8. <add key="getZX" value="http://ht.55128.cn"></add>
  9. <add key="CacheDateTime" value="180" />
  10. </appSettings>
  11. <system.web>
  12. <compilation debug="true"/>
  13. <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8"/>
  14. <pages validateRequest="false" enableViewStateMac="false" enableSessionState="true"/>
  15. <httpRuntime maxRequestLength="2097151" useFullyQualifiedRedirectUrl="true" executionTimeout="3600"/>
  16. <customErrors mode="Off" defaultRedirect="http://www.55128.cn/404.aspx">
  17. <error statusCode="404" redirect="http://www.55128.cn/404.aspx"/>
  18. </customErrors>
  19. </system.web>
  20. <system.webServer>
  21. <httpErrors errorMode="Custom">
  22. <remove statusCode="404" subStatusCode="-1"/>
  23. <remove statusCode="500" subStatusCode="-1"/>
  24. <error statusCode="404" prefixLanguageFilePath="" path="http://www.55128.cn/404.aspx" responseMode="ExecuteURL"/>
  25. <error statusCode="500" prefixLanguageFilePath="" path="http://www.55128.cn/404.aspx" responseMode="ExecuteURL"/>
  26. </httpErrors>
  27. <rewrite>
  28. <rules>
  29. <!--试机号-->
  30. <rule name="旧版-试机号首页-期数" stopProcessing="true"><match url="^(p3|sd)sjh.aspx$"/><action type="Rewrite" url="/shijihao/{R:1}sjh.aspx"/></rule>
  31. <rule name="p3-试机号-期数" stopProcessing="true"><match url="^p3-shijihao-(\d{7}).htm$"/><action type="Rewrite" url="/shijihao/p3sjh.aspx?term={R:1}"/></rule>
  32. <rule name="3d-试机号-期数" stopProcessing="true"><match url="^3d-shijihao-(\d{7}).htm$"/><action type="Rewrite" url="/shijihao/sdsjh.aspx?term={R:1}"/></rule>
  33. <rule name="试机号-年份" stopProcessing="true"><match url="^(3d|p3)-shijihao-(\d{4}).htm$"/><action type="Rewrite" url="/shijihao/{R:1}list.aspx?year={R:2}"/></rule>
  34. <rule name="试机号-列表" stopProcessing="true"><match url="^(3d|p3)-shijihao-(\d+).htm$"/><action type="Rewrite" url="/shijihao/{R:1}list.aspx?topsize={R:2}"/></rule>
  35. <!--开机号-->
  36. <rule name="旧版-3d开机号-历史" stopProcessing="true"><match url="^sdkjh.aspx$"/><action type="Rewrite" url="/kaijihao/sdkjh.aspx"/></rule>
  37. <rule name="开机号-首页" stopProcessing="true"><match url="^(ssq|dlt|p3|3d)-kaijihao/$"/><action type="Rewrite" url="/kaijihao/{R:1}.aspx"/></rule>
  38. <rule name="开机号-首页_new" stopProcessing="true">
  39. <match url="^(ssq|dlt|p3|3d)-kaijihao$"/>
  40. <action type="Rewrite" url="/kaijihao/{R:1}.aspx"/>
  41. </rule>
  42. <rule name="开机号-期数" stopProcessing="true"><match url="^(ssq|dlt|p3|3d)-kaijihao-(\d{7}).htm$"/><action type="Rewrite" url="/kaijihao/{R:1}.aspx?term={R:2}"/></rule>
  43. <rule name="开机号-列表" stopProcessing="true"><match url="^(ssq|dlt|p3|3d)-kaijihao-(\d+).htm$"/><action type="Rewrite" url="/kaijihao/{R:1}list.aspx?topsize={R:2}"/></rule>
  44. <!--开奖结果-->
  45. <rule name="旧版-开奖结果" stopProcessing="true"><match url="^xq_(ssq|dlt|p3|p5|qlc|qxc|hc1|sd|fj31x7|fj36x7|js7ws|zj6j1|df6j1|hd15x5|hb30x5|hn22x5|xj35x7|ny36x7).aspx$"/><action type="Rewrite" url="/kjjg/{R:1}.aspx"/></rule>
  46. <rule name="开奖结果" stopProcessing="true"><match url="^(ssq|dlt|p3|p5|qlc|qxc|hc1|fj31x7|fj36x7|js7ws|zj6j1|df6j1|hd15x5|hb30x5|hn22x5|xj35x7|ny36x7)-kjjg-(\d{5,7}).htm$"/><action type="Rewrite" url="/kjjg/{R:1}.aspx?term={R:2}"/></rule>
  47. <rule name="3d开奖结果" stopProcessing="true"><match url="^3d-kjjg-(\d{7}).htm$"/><action type="Rewrite" url="/kjjg/sd.aspx?term={R:1}"/></rule>
  48. <rule name="高频特殊开奖结果" stopProcessing="true"><match url="^xq_(bjpk10|bjkl8).aspx$"/><action type="Rewrite" url="/kjjg/{R:1}.aspx?lotname={R:1}"/></rule>
  49. <rule name="高频特殊彩开奖结果" stopProcessing="true"><match url="^(bjpk10|bjkl8)-kjjg-((\d){4}[-](\d){1,2}[-](\d){1,2}).htm$"/><action type="Rewrite" url="/kjjg/{R:1}.aspx?lotname={R:1}&amp;time={R:2}"/></rule>
  50. <rule name="高频开奖结果" stopProcessing="true"><match url="^xq_(sckl12|ah11x5|cq11x5|gd11x5|gz11x5|hlj11x5|hb11x5|jx11x5|js11x5|jl11x5|ln11x5|sd11x5|sh11x5|sc11x5|tj11x5|yn11x5|zj11x5|ahk3|hbk3|jsk3|jlk3|lnkl12|cqklsf|gxklsf|gdklsf|hnklsf|hubk3|tjklsf|sdqyh|hebk3|nmgk3|zjklc|sxklsf|hebk3|nmgk3|zjklc|sxklsf|heb11x5|shssl|nmg11x5|gs11x5|fj11x5|xj11x5|sxxa11x5|sxty11x5|klpk3|xysc|ytdj).aspx$"/><action type="Rewrite" url="/kjjg/list.aspx?lotname={R:1}"/></rule>
  51. <rule name="高频彩开奖结果" stopProcessing="true"><match url="^(sckl12|ah11x5|cq11x5|gd11x5|gz11x5|hlj11x5|hb11x5|jx11x5|js11x5|jl11x5|ln11x5|sd11x5|sh11x5|sc11x5|tj11x5|yn11x5|zj11x5|ahk3|hbk3|jsk3|jlk3|lnkl12|cqklsf|gxklsf|gdklsf|hnklsf|hubk3|tjklsf|sdqyh|hebk3|nmgk3|zjklc|sxklsf|heb11x5|shssl|nmg11x5|gs11x5|fj11x5|xj11x5|sxxa11x5|sxty11x5|klpk3|xysc|ytdj)-kjjg-((\d){4}[-](\d){1,2}[-](\d){1,2}).htm$"/><action type="Rewrite" url="/kjjg/list.aspx?lotname={R:1}&amp;time={R:2}"/></rule>
  52. <!--历史开奖 列表-->
  53. <rule name="旧版-历史开奖-年份" stopProcessing="true"><match url="^history_(ssq|dlt|sd|p3|p5|qlc|qxc|hc1).aspx$"/><action type="Rewrite" url="/history/{R:1}.aspx"/></rule>
  54. <rule name="历史开奖-年份" stopProcessing="true">
  55. <match url="^(ssq|dlt|sd|p3|p5|qlc|qxc|hc1)-history-(\d{4}).htm$"/><action type="Rewrite" url="/history/{R:1}.aspx?year={R:2}"/></rule>
  56. <rule name="历史开奖-topsize" stopProcessing="true"><match url="^(ssq|dlt|sd|p3|p5|qlc|qxc|hc1)-history-(\d+).htm$"/><action type="Rewrite" url="/history/{R:1}.aspx?topsize={R:2}"/></rule>
  57. <rule name="新彩种-历史开奖" stopProcessing="true"><match url="^history_(sckl12|fj31x7|fj36x7|js7ws|zj6j1|df6j1|hd15x5|hb30x5|hn22x5|xj35x7|ny36x7|ah11x5|cq11x5|gd11x5|gz11x5|hlj11x5|hb11x5|jx11x5|js11x5|jl11x5|ln11x5|sd11x5|sh11x5|sc11x5|tj11x5|yn11x5|zj11x5|ahk3|hbk3|jsk3|jlk3|lnkl12|cqklsf|gxklsf|gdklsf|hnklsf|tjklsf|sdqyh|hebk3|nmgk3|zjklc|sxklsf|hebk3|nmgk3|zjklc|sxklsf|heb11x5|shssl|nmg11x5|gs11x5|fj11x5|xj11x5|sxxa11x5|sxty11x5|klpk3|xysc|ytdj).aspx$"/><action type="Rewrite" url="/history/list.aspx?lotname={R:1}"/></rule>
  58. <rule name="新彩种-历史开奖-年份" stopProcessing="true"><match url="^(fj31x7|fj36x7|js7ws|zj6j1|df6j1|hd15x5|hb30x5|hn22x5|xj35x7|ny36x7)-history-(\d{4}).htm$"/><action type="Rewrite" url="/history/list.aspx?lotname={R:1}&amp;year={R:2}"/></rule>
  59. <rule name="新彩种-历史开奖-topsize" stopProcessing="true"><match url="^(fj31x7|fj36x7|js7ws|zj6j1|df6j1|hd15x5|hb30x5|hn22x5|xj35x7|ny36x7)-history-(\d+).htm$"/><action type="Rewrite" url="/history/list.aspx?lotname={R:1}&amp;topsize={R:2}"/></rule>
  60. <!--开奖直播-->
  61. <rule name="开奖直播-首页" stopProcessing="true"><match url="^(ssq|dlt|p3|p5|qlc|qxc|hc1)-kjzb/$"/><action type="Rewrite" url="/kjzb/{R:1}.aspx"/></rule>
  62. <rule name="3D开奖直播-首页" stopProcessing="true"><match url="^3d-kjzb/$"/><action type="Rewrite" url="/kjzb/sd.aspx"/></rule>
  63. <rule name="开奖直播-期数" stopProcessing="true"><match url="^(ssq|dlt|p3|p5|qlc|qxc|hc1)-kjzb-(\d{7}).htm$"/><action type="Rewrite" url="/kjzb/{R:1}.aspx?qi={R:2}"/></rule>
  64. <rule name="3D开奖直播-期数" stopProcessing="true"><match url="^3d-kjzb-(\d{7}).htm$"/><action type="Rewrite" url="/kjzb/sd.aspx?qi={R:1}"/></rule>
  65. <!--玩法规则 中奖规则-->
  66. <rule name="玩法规则-中奖规则" stopProcessing="true"><match url="^(ssq|p5|p3|qxc|ssc|qlc|qyh|ssl|hc1|dlt|3d|fj31x7|fj36x7|js7ws|zj6j1|df6j1|hd15x5|hb30x5|hn22x5|xj35x7|ny36x7|sckl12|fj31x7|fj36x7|js7ws|zj6j1|df6j1|hd15x5|hb30x5|hn22x5|xj35x7|ny36x7|ah11x5|cq11x5|gd11x5|gz11x5|hlj11x5|hb11x5|jx11x5|js11x5|jl11x5|ln11x5|sd11x5|sh11x5|sc11x5|tj11x5|yn11x5|zj11x5|ahk3|hbk3|jsk3|jlk3|lnkl12|cqklsf|gxklsf|gdklsf|hnklsf|tjklsf|sdqyh|hebk3|nmgk3|zjklc|sxklsf|heb11x5|shssl|nmg11x5|gs11x5|fj11x5|xj11x5|sxxa11x5|sxty11x5|klpk3|xysc|ytdj)-zjgz/$"/><action type="Rewrite" url="/rules/article.aspx?lottery={R:1}"/></rule>
  67. </rules>
  68. </rewrite>
  69. <defaultDocument>
  70. <files>
  71. <remove value="index.aspx"/>
  72. <add value="index.aspx"/>
  73. </files>
  74. </defaultDocument>
  75. <modules>
  76. <add name="blackips" type="CB.Common.BlackIpHttpModule"/>
  77. <add name="threadNameFilter" type="CB.Web.Kjh.Filters.ThreadNameFilter" preCondition="managedHandler" />
  78. <!--只对托管资源起作用-->
  79. </modules>
  80. </system.webServer>
  81. </configuration>