Notes for implementing second-level or multi-level domain names (modifying urlrewrite) in ASP. NET

Source: Internet
Author: User

Background:

Http://jzywh.cnblogs.com/archive/2005/09/29/246650.html

Many of my online users see this article.Article, According to my method, but still did not get the desired effect, in fact, some problems need to be noted, in my previous article, I only proposed the core content of the solution to this problem, some friends may encounter some problems in practical use. In fact, they can solve the problems based on their own experience. Here I will help you list some points to help you solve the problems quickly.

1. domain name resolution Problems
Enter the domain name http://1234.abc.com/. the browser prompts that the webpage cannot be found. First, you should confirm whether your domain name supports wildcard domain name resolution, that is, to make all the second-level and third-level domain names point to your server. Second, make sure that your site is the default site on the server, that is, a site with an empty Host header on port 80 can be accessed directly using an IP address.

2. The rewrite cannot be executed.
If you confirm that your domain name resolution is correct but cannot be rewritten, visit http://1234.abc.com /.Path "/" cannot be found ...,
If so, add the wildcard application of aspnet_isapi.ProgramIng (This step is required, sorry! Not mentioned in the previous article).

Operation Method: IIS Site Properties> main directory> Configuration

Click Insert button

Select or enter c: \ windows \ Microsoft. NET \ framework \ v1.1.4322 \ aspnet_isapi.dll
Cancel the check before "check whether the file exists.
OK

There is no problem accessing http://1234.abc.com.

3. The default homepage is invalid because the ball is directly sent to Asp.net for processing. The default homepage defined by IIS will be invalid. This situation occurs:
Access the http://www.abc.com/cannot access the home page, and you can renew through http://1234.abc.com/default.aspx.
To solve this problem, set lookfor/to/default. aspx or index. aspx .. in Web. config to completely solve the problem.

OK, I have listed the solutions to common problems. If you see problems I have not listed here and you cannot solve them by yourself, please reply to questions or send me an email or add me QQ here.

Thank you!

Author: jiangda Yu
Source: http://jzywh.cnblogs.com/
The copyright of this article is shared by the author and the blog Park. You are welcome to repost this article. However, you must retain this statement without the author's consent and provide a clear link to the original article on the article page. Otherwise, you will be held legally liable.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.