How to get a colleague from a local area network to visit a PHP site on my Computer

Source: Internet
Author: User

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

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.