Phpstudy Create multiple sites, bind domain names

Source: Internet
Author: User

By default, the site root of Phpstudy is in its own WWW directory, such as F:\phpStudy\WWW, where the address can be HTTP://127.0.0.1/or http://localhost/

The following is what we want to achieve is to create multiple sites, binding their respective domain name, so that we can do a number of project development, non-impact.

Note: This article explains the full version of Phpstudy, and other versions may not work or be different.

1. Open Phpstudy, and click "Site Domain name settings" in "Other options"

2. See the following interface, fill in the website domain name (feel free to write, it is recommended not to write your frequently accessed online domain name), and then select the Site directory (can be arbitrary directory, but do not use Chinese), then click "Add", and then click "Save settings and generate profile", restart the environment can be effective

3. Above we fill in the domain name, we want to be directly to visit our local website, to achieve this goal, we need to revise the hosts file on our own computer, assign domain name to 127.0.0.1, for example:

Everything is OK in here!

Reprinted from: http://www.cmhello.com/phpstudy-1.html

Phpstudy Create multiple sites, bind domain names

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.