Vagrant Homestead Configuring multiple domain names failed

Source: Internet
Author: User
Keywords Php vagrant homestead

macUnder homestead , can be configured with multiple local domain names, and now updated, there has been a problem, can not be resolved, it seems to be nginx problem, but do not know how to debug.

Documents are: SCRIPTS/SERVE.SH scripts are dynamically added in the Homestead directory

命名: serve domain.app /home/vagrant/Code/path/to/public/directory

The problem lies

I've been doing this before. Dynamically set the domain name, truncate another Windows computer and

After the update on the Mac, there is no way to set the dynamic, typing this password, a flash over

Observing the possible problems of conjecture:

    1. Vagrant up when some of the files are not installed?

    2. Serve after the nginx is not restarted?
      But after I serve, I manually typed the command to restart, or there is no way to implement multi-domain

Novice, not too familiar with this piece, trouble everyone to point, because there are a lot of things to learn, a moment to fill, a moment php to learn laravel , but also to use the phpmyadmin database, so the need to multi-domain ~ Thank you!

Reply content:

macUnder homestead , can be configured with multiple local domain names, and now updated, there has been a problem, can not be resolved, it seems to be nginx problem, but do not know how to debug.

Documents are: SCRIPTS/SERVE.SH scripts are dynamically added in the Homestead directory

命名: serve domain.app /home/vagrant/Code/path/to/public/directory

The problem lies

I've been doing this before. Dynamically set the domain name, truncate another Windows computer and

After the update on the Mac, there is no way to set the dynamic, typing this password, a flash over

Observing the possible problems of conjecture:

    1. Vagrant up when some of the files are not installed?

    2. Serve after the nginx is not restarted?
      But after I serve, I manually typed the command to restart, or there is no way to implement multi-domain

Novice, not too familiar with this piece, trouble everyone to point, because there are a lot of things to learn, a moment to fill, a moment php to learn laravel , but also to use the phpmyadmin database, so the need to multi-domain ~ Thank you!

A temporary solution

The git clone files in the back Homestead folder are scripts/serve-laravel.sh added below service nginx restart and
service php7.0-fpm restart


Questions?

homesteadon the github see one commit:tweak a few things when creating sites , changed the scripts folder inside a little thing, but do not quite understand why to remove the restart Nginx and PHP options? And after the removal, can not serve success, I also sent an e-mail to the author, but do not know will not return ...

See link: Github:homestead

  • 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.