Homestead configuration problem: the host cannot be accessed normally

Source: Internet
Author: User
The configuration of 127.0.0.1forum.app is also configured in the host according to the tutorial, but forum. app returns the nginx default page. If you change to 192.168.10.10forum.app, 502 is returned. What's the problem? The configuration is as follows ~ Hosts file: homestead. yaml...

Added

127.0.0.1 forum. app

The configuration is also configured according to the tutorial, but forum. app returns the default nginx page. If you change to 192.168.10.10 forum. app, 502 is returned. What's the problem? The configuration is as follows ~

Hosts file:

Homestead. yaml Configuration:

Project File Location :~ /Code/Forum

Reply content:

Added

127.0.0.1 forum. app

The configuration is also configured according to the tutorial, but forum. app returns the default nginx page. If you change to 192.168.10.10 forum. app, 502 is returned. What's the problem? The configuration is as follows ~

Hosts file:

Homestead. yaml Configuration:

Project File Location :~ /Code/Forum

Solved. Because the PHP-FPM cannot work properly. The PHP-FPM cannot work because of vagrant box version issues. Replace 4.0.1 with 0.3.0. (If you have multiple boxes, simply delete the latest ones .)

10.10 points to homestead, and 127 points to the local machine.
The actual situation is probably homestead 502. Check the log.

The same is true for me. The server where the page is displayed has no response. I only configured one site. The yaml and hosts files are correct. The hosts file contains 192.168.10.10 homestead. app. What is the problem.

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.