1.configure the homestead.yaml file
Add folder mapping, domain name directory mapping (note the layer mapped to the entry file)
Add folder mapping, domain name directory mapping (note the layer mapped to the entry file)
2. Configure hosts file
3. Reload vagrant (reload the modified configuration file)
vagrant provision&&vagrant reload
#After reloading the configuration, open vagrant
vagrant up && vagrant ssh
4. Restart nginx
service nginx restart
5. Successfully open the newly added site
Read More:
- [PHP] Solve the problem that the new version of Chrome’s same-site policy cannot record cookies across domains
- PHP large file upload error 413: request entity too large [How to Solve]
- php_network_getaddresses: getaddrinfo failed (How to Fix)
- PHP file download, download failed, nginx open() nginx / fastcgi_ temp/2/10/0000000102“ failed (13: Permission denied)
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- [PHP] Solve the limitation of uploading files in nginx php 413 Request Entity Too Large
- [Solved] tp6.0 open_basedir Error: Warning: require(): open_basedir restriction in effect.
- [Solved] PostgreSQL configure: error: readline library not found
- PHP error in Windows: class’ mysqli ‘not found
- Error while injecting dependencies into App\Controller\IndexController: No entry or class found for
- composer Error: The requested PHP extension ext-bcmath * is missing from your system. Install or enable
- Lack of files in composer installation [How to Solve]
- [Solved] Centos7 xmapp Install Error: error while loading shared libraries: libc.so.6
- [Solved] PHP getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
- 404 solution for WordPress Chinese tag
- Mac PHP Fatal error: Class ‘Memcache’ not found
- [Solved] Laravel Upload Files Verificate Error: The file failed to upload.
- Laravel5.5 Error: SQLSTATE[42000] Syntax error or access violation 1071 Specified key was too long; max k
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution
- [Solved] PHP Fatal error: Uncaught Error: Class ‘Redis‘ not found in