Nginx series (19th) use a domain name to access the web server of the local machine

Source: Internet
Author: User
: This article mainly introduces the Nginx series (19th) using domain names to access the web server of the local machine. For more information about PHP tutorials, see. Assume that the ip address of the local virtual machine is 192.168.23.128. to access the web server in the virtual machine by using the domain name www.test01.com, perform the following configuration:

In windows, edit the C: \ Windows \ System32 \ drivers \ etc \ hosts file and add the following content:

# NginxTest192.168.23.128 www.test01.com # End nginxTest

In linux, edit the/etc/hosts file and add the following content:

# NginxTest192.168.23.128 www.test01.com # End nginxTest

The above introduces the Nginx series (19th) using the domain name to access the local web server, including some content, hope to be helpful to friends interested in PHP tutorials.

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.