How to configure a local virtual domain name

Configure the name of this 127.0.0.1 virtual domain name under the C:\Windows\System32\drivers\etc\hosts file

Fill in the following code below the vohosts file:

<VirtualHost *:80>
DocumentRoot "E:\phpStudy\WWW\Project Name"
ServerName The name of the virtual domain name
ServerAlias ​​The name of the virtual domain name
</VirtualHost>

restart phpstudy

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324651006&siteId=291194637