Loading

摘要: var query = (from s in ctx.Students.Include("ClassRooms") join sd in ctx.StudentDescriptions on s.StudentID equals sd.StudentID into g from stuDesc in g.DefaultIfEmpty() select new { ... 阅读全文
posted @ 2012-12-15 13:09 chear 阅读(5322) 评论(1) 推荐(1)
摘要: 由于备案的问题,现在使用Nginx做代理对网站进行访问。Nginx安装到国外的服务器上(www.a.com),然后代理到国内的服务器上(aa.d.com)。发现 使用HttpContext.Current.Request.Url.Host.ToString()获取域名地址是aa.d.com。导致很多功能都链接到aa.d.com上。临时解决办法:HttpContext.Current.Request.Url.Host 直接返回Nginx上的域名地址(www.a.com)。 阅读全文
posted @ 2012-12-15 13:05 chear 阅读(1710) 评论(0) 推荐(0)