How does Apache bind a second-level domain name? Bind a second-level domain name

Source: Internet
Author: User
Tags bind domain name server in domain mail exchange mx record
1. Bind the domain name to our host IP address from the domain name server provider

1.1 Third-party domain name resolution, such as dnspod

I. DNSPod registered users
 
Open DNSPod website (http://www.dnspod.cn), according to the requirements to fill in the information, it is best to fill in the real information, if there is a problem can
 
To facilitate contact. As this article mainly explains how to use DNSPod to resolve domain names, it will not explain how to register users.
 
II. DNSPod domain name resolution (important)



1.2 Xinnet resolution

 

Step 1: Use the liudapao.com domain name as an example.
Http://dcp.xinnet.com/(Xinnet's general domain name management platform ),
(Note: If your domain name is purchased through this site, you can also directly manage the new network domain name through domain name management in the background)
The following operation interface is displayed:
Step 2:

 

Enter liudapao and the domain name and password. Then, go to the following interface,

 


 

As you can see, there are three functions: "domain name management", "MYDNS", and "change password ", in domain name management, the information of the contact person of the domain name administrator can be modified, except that the domain name owner cannot be modified, as you can see, we should use "MYDNS" for domain name resolution"

 

Step 3: Click "MYDNS". The operation interface shown in the figure below is displayed,

 


 

As you can see, domain name resolution is divided into four parts: "DNS resolution record" "host name" "Alias" "mail exchange record ", we usually use "host name" and "mail exchange record", which are also commonly referred to as "A record" and "MX record ",

 


Add A new A record, as shown in the following figure:

 


 

In the first blank space, we can enter "www" and "Blank" (blank is nothing, do not enter Chinese blank) "mail ", of course, it can also be others. Fill in the server IP address. For example, if our WEB server IP address is 203.187.176.162, and the post office server IP address is 203.187.176.1620.5,

 

The default TTL value is 3600. Do not change the value. After filling in the information, click submit, as shown in the following figure:

 



1.3. HiChina DNS

Enter http://diy.hichina.co/in the browser to enter HiChina domain name control panel. 2. Enter your domain name (for example, free48.com) in the domain name input box and your domain name management password in the password box. In the verification code input box, enter the verification code and click log on.
3. Click log on and wait for a moment to automatically enter the HiChina domain name control panel, as shown in the figure.
How can I modify HiChina domain name contact information?
1. First, log on to the HiChina domain name control panel (if you do not know, click the top Logon control panelButton ).
2. After logging in, select domain name information modification from the menu on the left.
3. Find the project you want to modify and modify it directly.
4. Click submit after modification. The system will automatically save the modification.
 
How do I submit materials for HiChina registered domain names?
1. First, log on to the HiChina domain name control panel (if you do not know, click the top Logon control panelButton ).
2. After logging on to the home page of the control panel, you can see a "submit materials now/View status" link in the upper-right corner. Click the link to enter the HiChina registered domain name submission page.
3. If, as shown in the preceding figure, the domain name has been submitted to HiChina and is successfully reviewed, no materials need to be submitted.
4. If you have not submitted any materials, please enter the contact name, phone number, email address, and user type carefully.
If an individual user needs to upload a scanned copy of his/her ID card, if an enterprise user needs to upload a copy of his/her contact's ID card, and a copy of the address organization code certificate of the relevant enterprise.
5. After all the materials are filled in and uploaded successfully, click submit. Wait for the HiChina review.
How does one modify the dns of a HiChina domain name?
1. First, log on to the HiChina domain name control panel (if you do not know, click the top Logon control panelButton)
2. Select DNS modification in the left-side menu.
3. Enter your DNS name in the DNS name box, with one dns per line.
4. Click Submit. Wait for a moment to take effect.
How does one modify the resolution (DNS record) of a HiChina domain name )?
1. First, log on to the HiChina domain name control panel (if you do not know, click the top Logon control panelButton)
2. Select domain name resolution in the left-side menu, and select Advanced resolution.
3. Select the domain name resolution type. You can select A record, MX record, NS record, CNAME record, and TXT record.
4. Select an effective time from the effective time. Generally, select 1 hour.
5. Enter the IP address to be resolved in the IP address.
6. Click NewTo add a resolution record. After a resolution record is added, it generally takes effect within two hours. If it does not take effect for two hours, click Why can't I open the button after domain name resolution?(Green button ).
How can I change the password of a HiChina domain name?
1. First, log on to the HiChina domain name control panel (if you do not know, click the top Logon control panelButton)
2. Select domain name password modification from the menu on the left.
3. Enter your current domain name password in the input box, and enter your new domain name password in the following two boxes.
4. Click Submit. The password is successfully modified.

2. Add a VM in the apapache configuration file or httpd-vhosts.conf file

I made the following configuration for the httpd-vhosts.conf in Apache.

The code is as follows: Copy code
<VirtualHost *>
ServerAdmin xx@xx.cn
DocumentRoot "E: // wwwroot"
ServerName domain.com: 80
ServerAlias * .domain.com
</VirtualHost>

3. Restart the apache server

 

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.