

I've tried lots of recommendations for solve this, but no luck. My debug session could be very long (much more than 30 seconds) and it seems, that nginx couldn't wait so long, it shows "504 Gateway timeout error".But, when I moved to nginx+php_fpm+xdebug+netbeans I've experienced some problems with debugging.

Again, you may add as many sites to your Homestead environment as necessary.In the past, I've used apache+mod_php+xdebug+netbeans for development my website (server is my local machine, running Debian Squeeze), with pleasure - xdebug worked just as expected, debug sessions could be started and stopped any time, when I need it. A sample site configuration is included in the Homestead.yaml file. Your Homestead.yaml file's sites property allows you to easily map a "domain" to a folder on your Homestead environment.

You may also pass any options supported by Vagrant's Synced Folders by listing them under the options key: folders:

This plug-in will maintain the correct user / group permissions for files and directories within the Homestead virtual machine. When using NFS on Windows, you should consider installing the vagrant-winnfsd plug-in. Homestead runs on any Windows, macOS, or Linux system and includes Nginx, PHP, MySQL, PostgreSQL, Redis, Memcached, Node, and all of the other software you need to develop amazing Laravel applications. If something goes wrong, you can destroy and re-create the box in minutes! Vagrant provides a simple, elegant way to manage and provision Virtual Machines. Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine. Laravel strives to make the entire PHP development experience delightful, including your local development environment.
