1. Open httpd.conf
Find the "Include conf/extra/httpd-vhosts.conf" line, cancel the previous # # comment and save
2. Modify the httpd-vhosts.conf file
Go to the Conf/extra folder in the Apache installation directory, open the httpd-vhosts.conf file,
2.1, you can clear the contents of the file
2.2, you can also all the contents of the file Add # Note (2.1 and 2.2 two to select the execution)
2.3. Include in the document
Namevirtualhost *:<virtualhost *: >"E:\wamp64\www\ApiOnline "127.0. 0.1</virtualhost><directory/> from allsatisfyall </ Directory>
This assumes that the bound domain name is 127.0.0.1, if it is deployed on the server, and the requested domain name is already bound to the IP of the server, then the 127.0.0.1 can be changed to the relevant domain name, such as www.example.com.
127.0.0.1 corresponding parsing path is "E:\wamp64\www\ApiOnline", where Apionline is the PHP project name
2.4. Restart Apache
Attention:
Assuming PHP engineer CodeIgniter framework, the project name is Apionline, then the original project in application/config/config.php
$config [' base_url '] = ' http://127.0.0.1/ApiOnline ';
After the domain name is bound, you can modify it to:
$config [' base_url '] = ' http://127.0.0.1 ';
Apache will automatically match 127.0.0.1 to "E:\wamp64\www\ApiOnline"
Under Windows Apache configuration domain name