Requirements: Want to let the company on the same LAN colleague computer to access the PHP project inside my computer.
Condition: First confirm that localhost has normal access to your project
Steps:
1. Add new listening ports, such as: Listen 0.0.0.0:99
2. Permissions that allow others to access the directory where your project resides, such as
<directory f:/www/web/>
AllowOverride All
Require all granted
</Directory>
3. Change the Wampserver online status. Click on the icon, the bottom put online
4. Add the virtual directory in the http-vohost.conf. Such as
E:\wamp\bin\apache\apache2.4.9\conf\extra\http-vohost.conf
<virtualhost *:99>
ServerAdmin [email protected]
DocumentRoot "F:/www/web"
ServerName localhost:99
Errorlog "Logs/error.log"
Customlog "Logs/localhost.log" common
</VirtualHost>
5. Restart Apache
6. Browser access to your ip:99 such as 192.168.1.212:99 yo West, normal access to the project, if your phone is also the same LAN, 192.168.1.212:99 can also access the items on your computer.
How to get a colleague from a local area network to visit a PHP site on my Computer