行 1: #pragma checksum "C:\WWW\Aiyiweb\global.asax" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "C483D24EC0CEC29EC9FCA0B5A45DDF49AB1AAE91"
行 2: //------------------------------------------------------------------------------
行 3: // <auto-generated>
行 4: // 此代码由工具生成。
行 5: // 运行时版本:4.0.30319.42000
行 6: //
行 7: // 对此文件的更改可能会导致不正确的行为,并且如果
行 8: // 重新生成代码,这些更改将会丢失。
行 9: // </auto-generated>
行 10: //------------------------------------------------------------------------------
行 11:
行 12: namespace ASP {
行 13:
行 14: #line 2 "C:\WWW\Aiyiweb\global.asax"
行 15: using Aiyiweb.Common;
行 16:
行 17: #line default
行 18: #line hidden
行 19:
行 20: #line 389 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 21: using System.Linq;
行 22:
行 23: #line default
行 24: #line hidden
行 25:
行 26: #line 396 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 27: using System.Web.Security;
行 28:
行 29: #line default
行 30: #line hidden
行 31:
行 32: #line 387 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 33: using System.ComponentModel.DataAnnotations;
行 34:
行 35: #line default
行 36: #line hidden
行 37:
行 38: #line 385 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 39: using System.Collections.Generic;
行 40:
行 41: #line default
行 42: #line hidden
行 43:
行 44: #line 400 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 45: using System.Web.UI.WebControls.WebParts;
行 46:
行 47: #line default
行 48: #line hidden
行 49:
行 50: #line 399 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 51: using System.Web.UI.WebControls;
行 52:
行 53: #line default
行 54: #line hidden
行 55:
行 56: #line 402 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 57: using System.Xml.Linq;
行 58:
行 59: #line default
行 60: #line hidden
行 61:
行 62: #line 398 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 63: using System.Web.UI;
行 64:
行 65: #line default
行 66: #line hidden
行 67:
行 68: #line 401 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 69: using System.Web.UI.HtmlControls;
行 70:
行 71: #line default
行 72: #line hidden
行 73:
行 74: #line 392 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 75: using System.Web;
行 76:
行 77: #line default
行 78: #line hidden
行 79:
行 80: #line 388 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 81: using System.Configuration;
行 82:
行 83: #line default
行 84: #line hidden
行 85:
行 86: #line 383 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 87: using System;
行 88:
行 89: #line default
行 90: #line hidden
行 91:
行 92: #line 390 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 93: using System.Text;
行 94:
行 95: #line default
行 96: #line hidden
行 97:
行 98: #line 397 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 99: using System.Web.Profile;
行 100:
行 101: #line default
行 102: #line hidden
行 103:
行 104: #line 393 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 105: using System.Web.Caching;
行 106:
行 107: #line default
行 108: #line hidden
行 109:
行 110: #line 384 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 111: using System.Collections;
行 112:
行 113: #line default
行 114: #line hidden
行 115:
行 116: #line 391 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 117: using System.Text.RegularExpressions;
行 118:
行 119: #line default
行 120: #line hidden
行 121:
行 122: #line 4 "C:\WWW\Aiyiweb\global.asax"
行 123: using System.Threading;
行 124:
行 125: #line default
行 126: #line hidden
行 127:
行 128: #line 386 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 129: using System.Collections.Specialized;
行 130:
行 131: #line default
行 132: #line hidden
行 133:
行 134: #line 3 "C:\WWW\Aiyiweb\global.asax"
行 135: using System.Web.SessionState;
行 136:
行 137: #line default
行 138: #line hidden
行 139:
行 140: #line 394 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
行 141: using System.Web.DynamicData;
行 142:
行 143: #line default
行 144: #line hidden
行 145:
行 146:
行 147: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
行 148: public class global_asax : global::System.Web.HttpApplication {
行 149:
行 150: private static bool @__initialized;
行 151:
行 152:
行 153: #line 5 "C:\WWW\Aiyiweb\global.asax"
行 154:
行 155:
行 156:
行 157:
行 158: void Application_Start(object sender, EventArgs e)
行 159: {
行 160: // new Aiyiweb.BLL.SQLInstance().InstanceMSSQL();
行 161: new Aiyiweb.BLL.SQLInstance().InstanceMSSQL( Aiyiweb.BLL.SQLInstanceNetworkType.APP_USE); //远程 部署已做HOST,用这个就可以了
行 162: //new Aiyiweb.BLL.SQLInstance().InstanceMSSQL( Aiyiweb.BLL.SQLInstanceNetworkType.AliyunSqlIntranet); //阿里云内网调用
行 163: // new Aiyiweb.BLL.SQLInstance().InstanceMSSQL(Aiyiweb.BLL.SQLInstanceNetworkType.LocalAuto); //自动配置数据库 Host为具体
行 164:
行 165: Aiyiweb.TdyunDelegate.SocketItemEvent.ItemChangeEvent += Aiyiweb.BLL.BLLMyDelegate.EventDo;//添加 委托事件
行 166: Application["webtilte"] = "爱易网页";
行 167: Application["webkeywords"] = "网页设计教程,网页制作,网站开发,网页开发,网站制作教程,ps教程,sql教程,mysql教程,html教程,css教程,js教程.";
行 168: Application["webdescription"] = "【爱易网】为大家提供网页制作教程,网页设计教程,网页制作,网站开发,网页开发,网站制作教程,ps教程,sql教程,mysql教程,html教程,css教程,js教程,网络推广教程,HTML基础教程,CSS基础教程,脚本教程及SEO教程等文章内容,学习网页教程尽在爱易网。";
行 169: //Application["webicon"] = "<link type=\"image/x-icon\" rel=\"shortcut icon\" href=\"/images/favicon.ico\" />\r\n<link rel=\"apple-touch-icon-precomposed\" href=\"/images/apple-touch-icon-114x114.png\" />";
行 170:
行 171: Application["webicon"] = "<link rel=\"shortcut icon\" href=\"/images/favicon.ico\" type=\"image/x-icon\" />";
行 172:
行 173: //StaticValueUtils.listAiyiwebSitInfo = new Aiyiweb.BLL.AY_Sit_ColumnInfor().GetModelList("");
行 174: //foreach (Aiyiweb.Model.AY_Sit_ColumnInfor item in new Aiyiweb.BLL.AY_Sit_ColumnInfor().GetModelList(""))
行 175: //{
行 176: // string key = item.ColumnUrl.ToLower();
行 177: // if (!StaticValueUtils.htAYSiteInfo.Contains(key))
行 178: // StaticValueUtils.htAYSiteInfo.Add(key, item);
行 179: //}
行 180: // 循环遍历并添加到 cdAYSiteInfo 中
行 181: new Aiyiweb.BLL.AY_Sit_ColumnInfor().InitCdAYSiteInfo();//初始化SEO值
行 182:
行 183:
行 184: //在应用程序启动时运行的代码
行 185: Application["ymhcn"] = "http://ym.com/";
行 186: Application["td"] = "http://www.t-da.cn";
行 187: Application["tdyun"] = "http://www.tdyun.com";
行 188:
行 189: int secNum = 2;//多少秒
行 190: int requNum = 200;//请求不能超过多少次
行 191: IPCacheManager.SetTime(requNum, secNum);// (2, 1)每1秒请求2次
行 192:
行 193: int secNumTotal = 1;//多少秒
行 194: int requNumTotal = 30;//请求不能超过多少次
行 195: IPCacheManagerTotal.SetTime(requNumTotal, secNumTotal);// (2, 1)每1秒请求2次
行 196:
行 197: //Application["HostAnalysis"] = false;//默认不打开统计金额分析功能
行 198: //Application["HtmlHostFlag"] = false;//当前不分析
行 199: //Application["HtmlHost"] = "";//主机HTML
行 200: //Application["HtmlHostTime"] = DateTime.Now;//获取时间
行 201: //Application["HtmlHostBool"] = "1";//正常状态
行 202: //new Thread(() => TdyunSellTotalData.GetHtmlUtils("1")).Start();
行 203: new Thread(() => TdyunSellTotalData.ForDoAnyTimeSell("1")).Start();//检测
行 204:
行 205: //Application["HtmlHost"] = TdyunSellTotalData.GetHtmlHostTJ("1");//主机HTML
行 206: //Application["HtmlHostTime"] = DateTime.Now;//获取时间
行 207: //Application["HtmlHostBool"] = "1";//正常状态
行 208:
行 209: // Application["HtmlHostMaxId"] = TdyunSellTotalData.GetMaxHostId();//取出最大的ID数
行 210: //Application["HtmlHostIsDeleteFlast"] = TdyunSellTotalData.GetCountByState(0);//不删除的个数据
行 211: //Application["HtmlHostIsDeleteTrue"] = TdyunSellTotalData.GetCountByState(1);//删除的个数据
行 212: //Application["HtmlHost1"] = TdyunSellTotalData.GetHtmlHostTJ("0");//主机删除状态
行 213: Application["startTime"] = DateTime.Now;//设置启动时间
行 214: Application["total"] = 0;//Application是个全局变量,每个会话都可对他操作
行 215: Application["online"] = 0;
行 216:
行 217: StaticValueUtils.isRecardAiyiwebLog = false;//是否记录日志
行 218: StaticValueUtils.onlineAiyiwebNum = 70;//网站在线的最大可容纳人数
行 219:
行 220: Aiyiweb.Model.AY_ShareValues modelShare = new Aiyiweb.BLL.AY_ShareValues().GetModel(1);//从数据库中获取数据
行 221: string serName = modelShare.serverName.ToLower();
行 222: string serName_Main_HK = Aiyiweb.Common.StaticValueUtils.serName_Main_HK.ToLower();
行 223:
行 224: Log.log.Info(String.Format("【初始化设置】TDYUNDATA数据库中的服务器名称:{0} 香港服务器标识名称是:{1}", serName, serName_Main_HK));
行 225: {
行 226: if (modelShare.serverName.ToLower() == Aiyiweb.Common.StaticValueUtils.serName_Main_HK.ToLower())
行 227: {
行 228: StaticValueUtils.isSerName_Main_HK = true;//
行 229: }
行 230: else//大陆阿里云的
行 231: {
行 232: Log.log.Info("【延时分析】设置启用阿里云大陆延时分析服务计算........");
行 233: StaticValueUtils.isSerName_Main_CN_SleepProc = true;//启用延时计算分析服务
行 234:
行 235: //Log.log.Info("【快速分析】设置启用阿里云大陆快速分析服务计算........");
行 236: //StaticValueUtils.isSerName_Main_CN_SleepProc = false;//启用延时计算分析服务
行 237:
行 238: }
行 239: }
行 240: }
行 241:
行 242: void Application_End(object sender, EventArgs e)
行 243: {
行 244: //在应用程序关闭时运行的代码
行 245:
行 246: }
行 247:
行 248: void Application_Error(object sender, EventArgs e)
行 249: {
行 250: //在出现未处理的错误时运行的代码
行 251:
行 252: }
行 253:
行 254: void Session_Start(object sender, EventArgs e)
行 255: {
行 256: //在新会话启动时运行的代码
行 257: Session.Timeout = 1;
行 258: Application.Lock();//锁定后,只有这个Session能够会话
行 259: Application["total"] = (int)Application["total"] + 1;
行 260: Application["online"] = (int)Application["online"] + 1;
行 261: Application.UnLock();//会话完毕后解锁
行 262: }
行 263:
行 264: void Session_End(object sender, EventArgs e)
行 265: {
行 266: //在会话结束时运行的代码。
行 267: // 注意: 只有在 Web.config 文件中的 sessionstate 模式设置为
行 268: // InProc 时,才会引发 Session_End 事件。如果会话模式
行 269: //设置为 StateServer 或 SQLServer,则不会引发该事件。
行 270: Application.Lock();
行 271: Application["online"] = (int)Application["online"] - 1;
行 272: Application.UnLock();
行 273:
行 274:
行 275: }
行 276: void Application_BeginRequest(object sender, EventArgs e)
行 277: {
行 278:
行 279: string url = Request.AppRelativeCurrentExecutionFilePath;//获取传回服务器的路径 ~/goods_id.aspx
行 280: string ip = IPUtils.GetIpAddress();
行 281: string urlAbs = Server.UrlDecode(Request.Url.AbsoluteUri);
行 282:
行 283:
行 284:
行 285: string agent = Request.ServerVariables["HTTP_USER_AGENT"];//识别登录客户端
行 286: bool isMobiDev = RegexUtils.IsMobileDevice(agent);
行 287: string strDevCN = isMobiDev ? "手机设备" : "电脑设备";
行 288:
行 289: string scheme = Request.Url.Scheme.ToLower();// http https
行 290: string hostUrl = Request.Url.Host.ToLower();//当前主域名www.tdyun.com localhost
行 291:
行 292: const string AllowedDomain = "aiyiweb.com";
行 293: const string WwwDomain = "www." + AllowedDomain;
行 294: const string HttpsWwwDomain = "https://" + WwwDomain;
行 295: const string AdminIpAddress = "39.108.113.116";
行 296: const string AdminIpAddress252 = "10.10.8.252";
行 297:
行 298:
行 299:
行 300:
行 301: bool isOPenHttpsAutoRun = true;//是否开启非https自动跳转
行 302: string fullUrl = Request.Url.ToString().ToLower();//
行 303: if (!url.ToLower().Contains("Admintd".ToLower()))//不是登录后台的操作
行 304: {
行 305: if (isOPenHttpsAutoRun)
行 306: {
行 307: //RewriteCond %{HTTPS} !=on
行 308: //RewriteCond %{HTTP:Host} !^t.com$
行 309: //RewriteCond %{HTTP:Host} !^localhost$
行 310: //RewriteCond %{HTTP:Host} !^cn.tdyun.com$
行 311: //RewriteCond %{HTTP:Host} !^cdn.hk.tdyun.com$
行 312: //RewriteRule ^(.*) https://%{SERVER_NAME}$1 [R,L=302]
行 313: if (scheme == "http")
行 314: {
行 315: if (hostUrl != "localhost" && hostUrl != "127.0.0.1" && hostUrl != "ay.com" && hostUrl != AdminIpAddress252 && hostUrl != "cdn.hk.aiyiweb.com" && hostUrl != "imgcdn.aiyiweb.com" && IPUtils.GetIpAddress() != AdminIpAddress)
行 316: {
行 317:
行 318:
行 319: string redirectTo = fullUrl.Replace("http://" + hostUrl, "https://" + WwwDomain);// 主域名
行 320: Log.log.Info(string.Format("【{0}】请求URL网址{1} 强制https跳转后网址{2} 访客IP:{3} 浏览器标识:{4} ", strDevCN, urlAbs,redirectTo, ip, agent));
行 321: Response.Redirect(redirectTo);
行 322: }
行 323: }
行 324:
行 325: if (scheme == "https")//https非www的跳转到www中
行 326: {
行 327: if (hostUrl == "aiyiweb.com")
行 328: {
行 329: // 非管理员未登录,将子域名修改为主域名进行跳转
行 330: string redirectTo = fullUrl.Replace(hostUrl, WwwDomain);// 主域名
行 331: Response.Redirect(redirectTo);
行 332: }
行 333: }
行 334: }
行 335: }
行 336:
行 337:
行 338:
行 339:
行 340: if (agent == null)
行 341: {
行 342: //if (StaticValueUtils.isRecardAiyiwebLog)
行 343: Log.log.Info("登录客户端:Other------------------HTTP_USER_AGENT null---------");
行 344: }
行 345: else
行 346: {
行 347: if (!url.ToLower().Contains("/tdyun/api.aspx") && !url.ToLower().Contains("Admintd/json/LoginInfoJson.aspx".ToLower()))
行 348: {
行 349: // if (StaticValueUtils.isRecardAiyiwebLog)
行 350:
行 351: if (SpiderUtils.SetSpiderSuccess(agent))
行 352: {
行 353:
行 354: }
行 355: else
行 356: Log.log.Info(string.Format("【{0}】请求URL网址{1} 访客IP:{2} 浏览器标识:{3}", strDevCN, urlAbs, ip, agent));
行 357: }
行 358:
行 359: }
行 360:
行 361: //if (Request.Url.AbsoluteUri.ToLower().Contains("h.tdyun.com"))
行 362: //{
行 363: // if (!url.ToLower().Contains("tdyun"))
行 364: // Response.Redirect("http://www.tdyun.com/");
行 365: //}
行 366: // new WatermarkHandler().ProcessRequest(Context);
行 367:
行 368: Match mc = Regex.Match(url, @"~/([a-zA-Z0-9]{2,18})/([0-9]{1,10})(/)?$", RegexOptions.IgnoreCase); //文章内容
行 369: if (mc.Success)
行 370: {
行 371: string type = mc.Groups[1].Value;//类型
行 372: string num = mc.Groups[2].Value;//内容的数字
行 373: if (StaticValueUtils.isRecardAiyiwebLog)
行 374: {
行 375: Log.log.Info("请求的URL网址是:" + Request.Url.GetLeftPart(UriPartial.Path) + " 内容页"); //保存请求的URL域名地址
行 376: Log.log.Info("请求真实的URL网址是:http://" + Request.Url.Host + "/ContentPage.aspx?id=" + num + "&type=" + type);
行 377: }
行 378:
行 379: //if (!urlAbs.Contains("admintd.tdyun.com"))//首页不做检测 只检测文章操作
行 380: //{
行 381: // bool isAble = IPCacheManager.CheckIsAble(ip, url);
行 382: // if (!isAble)
行 383: // {
行 384: // if (StaticValueUtils.isRecardAiyiwebLog)
行 385: // Log.log.Error(string.Format("访问:{0} 太频率{1},请于1秒钟后再刷新偿试。IP:{2}", urlAbs, url, ip));
行 386: // HttpContext.Current.Response.ContentType = "text/html;charset=utf-8";
行 387: // HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); //设置输出流为简体中文
行 388: // Response.Write("Sorry. Access is too busy. Please try again in 1 second.<p />抱歉,访问过于频繁,请于1秒钟后再试。");
行 389: // Response.End();
行 390: // }
行 391: //}
行 392:
行 393:
行 394: if (type.ToLower() != "host" && type.ToLower() != "cloud")
行 395: {
行 396: bool isAbleTotal = IPCacheManagerTotal.CheckIsAble(ip, url);
行 397: int onlineNum = (int)Application["online"];
行 398: if (onlineNum > StaticValueUtils.onlineAiyiwebNum)
行 399: {
行 400:
行 401: if (!isAbleTotal) //访问过于频繁的话
行 402: {
行 403: if (StaticValueUtils.isRecardAiyiwebLog)
行 404: Log.log.Error(string.Format("访问:{0} 当前在线人数{1} > 设定最大人数:{2},当前{3},请于5秒钟后再刷新偿试。IP:{4}", urlAbs, onlineNum, StaticValueUtils.onlineAiyiwebNum, url, ip));
行 405:
行 406: HttpContext.Current.Response.ContentType = "text/html;charset=utf-8";
行 407: HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); //设置输出流为简体中文
行 408: Response.Write("Sorry. There are too many people online at present. Please visit again in 5 seconds. Thank you.<p />抱歉,当前在线人数过多,请稍后5秒再访问,谢谢。");
行 409: Response.End();
行 410: }
行 411: else//5秒内都不访问过一次
行 412: {
行 413: Context.RewritePath("/ContentPage.aspx?id=" + num + "&type=" + type);
行 414: }
行 415: }
行 416: else
行 417: Context.RewritePath("/ContentPage.aspx?id=" + num + "&type=" + type);
行 418: }
行 419: else
行 420: Context.RewritePath("/ContentPage.aspx?id=" + num + "&type=" + type);
行 421: }
行 422: else
行 423: {
行 424: mc = Regex.Match(url, @"~/([a-zA-Z0-9]{2,18})/(list_[0-9]{1,10})(/)?$", RegexOptions.IgnoreCase);
行 425: if (mc.Success) //ContentList.aspx//文章列表页面
行 426: {
行 427:
行 428: string type = mc.Groups[1].Value;
行 429: string pageNum = mc.Groups[2].Value;
行 430: if (StaticValueUtils.isRecardAiyiwebLog)
行 431: {
行 432: Log.log.Info("请求的URL网址是:" + Request.Url.GetLeftPart(UriPartial.Path) + " 文章列表2"); //保存请求的URL域名地址
行 433: Log.log.Info("请求真实的URL网址是:http://" + Request.Url.Host + "/ContentList.aspx?pageNum=" + pageNum + "&type=" + type);
行 434: }
行 435: Context.RewritePath("/ContentList.aspx?pageNum=" + pageNum + "&type=" + type);
行 436: }
行 437: }
行 438: mc = Regex.Match(url, @"~/([a-zA-Z0-9]{2,18})(/)?$", RegexOptions.IgnoreCase);
行 439: if (mc.Success) //ContentList.aspx//大体教程主页面
行 440: {
行 441:
行 442: string type = mc.Groups[1].Value;
行 443: string pageNum = "list_1";
行 444: if (StaticValueUtils.isRecardAiyiwebLog)
行 445: {
行 446: Log.log.Info("请求的URL网址是:" + Request.Url.GetLeftPart(UriPartial.Path) + " 文章列表1"); //保存请求的URL域名地址
行 447: Log.log.Info("请求真实的URL网址是:" + Request.Url.Host + "/ContentList.aspx?pageNum=" + pageNum + "&type=" + type); //请求真实的URL域名地址
行 448: }
行 449:
行 450: Context.RewritePath("/ContentList.aspx?pageNum=" + pageNum + "&type=" + type);
行 451: }
行 452:
行 453: //mc = Regex.Match(url, @"~/images/(.+?)$");
行 454: //if (mc.Success) //转到云图片端
行 455: //{
行 456: // // Log.log.Info("请求的URL网址是:" + Request.Url.GetLeftPart(UriPartial.Path) + " 转到云图片端"); //保存请求的URL域名地址
行 457: // string urlAddress = mc.Groups[1].Value;
行 458:
行 459: // // Log.log.Info("请求真实的URL网址是:http://yun.aiyiweb.com/images/" +urlAddress); //请求真实的URL域名地址
行 460: // //Context.RewritePath("http://yun.aiyiweb.com/images/" + urlAddress);
行 461: // Response.Redirect("http://yun.aiyiweb.com/images/" + urlAddress);
行 462: //}
行 463:
行 464: //URL重写
行 465: //RegistrationName= wlqcwin
行 466: //RegistrationCode= 2EAD-35GH-66NN-ZYBA
行 467: //RewriteEngine On
行 468: //RewriteCompatibility2 On
行 469: //RepeatLimit 32
行 470: //RewriteBase
行 471: //RewriteRule ^/http(?:\.ini|\.parse\.errors).*$ / [NC,F,O]
行 472: //RewriteRule ^.*\.isrwhlp$ / [NC,F,O]
行 473: //AccessFileName http.ini httpd.ini .htaccess
行 474: //RewriteLogLevel 0
行 475:
行 476: //RewriteCond %{HTTPS} !=on
行 477: //RewriteCond %{HTTP_HOST} !my08w.com$ [NC]
行 478: //RewriteCond %{HTTP_HOST} !^ftp\.(.*)\.99aiji\.net$ [NC]
行 479: //RewriteCond %{HTTP_HOST} !^ftp\.(.*)\.tdyscdn\.com$ [NC]
行 480: //RewriteCond %{REQUEST_URI} ^/UpLoads/images/ [NC]
行 481: //RewriteRule ^(.*)/([a-zA-Z0-9\-_\.\/]*)\.(gif|jpeg|png|bmp|jpg|swf|rar|zip)$ http://cdn.hktdcdn.%{SERVER_ADDR}.scdn.td98.com/%{HTTP_HOST}$1/$2.$3 [R=302,NC,L]
行 482: }
行 483:
行 484: #line default
行 485: #line hidden
行 486:
行 487:
行 488: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 489: public global_asax() {
行 490: if ((global::ASP.global_asax.@__initialized == false)) {
行 491: global::ASP.global_asax.@__initialized = true;
行 492: }
行 493: }
行 494:
行 495: protected System.Web.Profile.DefaultProfile Profile {
行 496: get {
行 497: return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));
行 498: }
行 499: }
行 500: }
行 501: }
行 502:
|