Windows 7 Configuration Host add local domain name testing and solutions for both agent and host coexistence

Source: Internet
Author: User

Today, friends request to do an unlimited son station, the pan-resolution of the Multi-User shop site, so the local test, you must use the domain name to achieve. Once before the entire success of the Apache and hosts local domain name debugging, the result today anyway can't get out! The tangle of Ah ...

First, copy the hosts under C:\Windows\System32\drivers\etc to the desktop, then open them with Notepad, add their own records, according to his format

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   :: 1             localhost
127.0.0.1       www.dede.com

Down is configured in Apache:

1. Remove the # number in front of the include conf/extra/httpd-vhosts.conf.

2. LoadModule Vhost_alias_module modules/mod_vhost_alias.so before the number of # also removed

3. Save exit

4. Open the httpd-vhosts.conf under the Conf/extra under the Apache installation directory

5. Add the site information of the virtual host to the inside:

<virtualhost *:80>
        ServerAdmin jsw7001@hotmail.com
        documentroot H:/www/demo
        www.dede.com
        ErrorLog h:/www/demo/error.log
</VirtualHost>

Then restart the Apache server, and then access, if there is a denial of authority, then in the Apache configuration file to change the permissions, of course, there are directory permissions on it.

If you are not able to access, well, continue to look down, I just because of this whole morning, pro.

Right-click My Computer, select the admin---service and then find the DNS Clent service, then select Stop and Change to manual. After more than 10 seconds to visit, it's OK. What the? You're not?

All right, you keep looking down.

Internet Options in IE-Connect---The proxy server in the LAN settings to remove the hook, absolutely no problem!! If you have a problem, add me QQ2387183033@qq.com, I'll fix it!!

What the? You have to use the agent, well, agent and hosts resolved to coexist AH. Simple, AH

Internet Options in IE-Connect---The proxy server in the LAN settings, tick, then point advanced, there is an exception, fill out the domain name that does not use the agent. Which is the domain name you wrote in the hosts, and then. To save or apply to.

Let's start debugging now!

This article is from the "尛 lei" blog, please be sure to keep this source http://a3147972.blog.51cto.com/2366547/1252029

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/home/

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.