惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
Schneier on Security
Schneier on Security
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
A
About on SuperTechFans
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
V
Visual Studio Blog
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
Scott Helme
Scott Helme
H
Heimdal Security Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Vulnerabilities – Threatpost
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Jina AI
Jina AI
S
Securelist
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
AWS News Blog
AWS News Blog
N
News and Events Feed by Topic
博客园 - 三生石上(FineUI控件)
量子位

博客园 - 海潮的博客

用DOS命令安装删除服务 - 海潮的博客 - 博客园 安装好PHP之后一般要找到php安装目录,修改php.ini中的时区设置 让Serv-u 9永远停留在30天试用的方法 请问SharePoint高手,怎样开发一个类似查阅项的字段类型?(无奈求助,请保留一两天) Static Ip on Windows PE 2 查看windows端口的使用 (抄录的) 不得不在这里求助了,NBear是不是没有TableAttribute属性了? vista 下安装了 vs2005及vs2005 sp1,但是还是出现“要运行 visual studio 2005 sp1,建议使用管理员权限” 解决ajax.net 1.0中文乱码问题! 一个上传大文件的部件叫做:SlickUpload-2.5.3 删除重复记录的办法 CSS解决未知高度垂直居中的问题 未知大小图片在已知容器中的垂直和水平居中问题 安装 Atlas 时遇到一个小问题 我儿子 二级域名共享cookies Cookie 支持二级域名和FormsAuthentication 加强版 ASP.NET中实现二级或多级域名(修改UrlRewrite) 一个图片轮换效果的JS
如何在本机上开发支持二级域名的.NET系统
海潮的博客 · 2006-07-25 · via 博客园 - 海潮的博客

现在越来越多的网站提供用户的二级域名访问,这对用户本身来说,是一个非常好的体验。能够采用个性化的域名,相信用户是会喜欢的。

由于二级域名系统的开发,牵涉到域名本身,那么如果在本机上开发二级域名系统,并且不通过Internet网访问,就成了一个问题。针对这一点,在这里讲述如何方便的做到这一点。

  1. 首先我们找到系统中的一个文件:\windows\system32\drivers\etc\hosts,用记事本加入一些和域名相关的IP指向。比如:127.0.0.1 smartyouth.net, 127.0.0.1 jasper.smartyouth.net, 127.0.0.1 admin.smartyouth.net。保存之后,我们访问如上网址,就会被定为到本机,就相当于你访问localhost一样。
  2. 在asp.net系统中,加入分析域名的代码,一般可以在default.aspx分析一下二级域名,用Server.Transfer转向到实际的页面。
  3. 在登陆代码中,处理登陆的Cookie,设置cookie的domain为.smartyouth.net。
  4. 在注销代码中,清除登陆的cookie.

第3、4步请参考关于二级域名Cookie的问题及解决方法