{"action":"closed","number":131,"pull_request":{"url":"https://api.github.com/repos/laravel/homestead/pulls/131","id":25366325,"html_url":"https://github.com/laravel/homestead/pull/131","diff_url":"https://github.com/laravel/homestead/pull/131.diff","patch_url":"https://github.com/laravel/homestead/pull/131.patch","issue_url":"https://api.github.com/repos/laravel/homestead/issues/131","number":131,"state":"closed","locked":false,"title":"Support of \"default_server\" NGINX config attribute","user":{"login":"Claymm","id":668419,"avatar_url":"https://avatars.githubusercontent.com/u/668419?v=3","gravatar_id":"","url":"https://api.github.com/users/Claymm","html_url":"https://github.com/Claymm","followers_url":"https://api.github.com/users/Claymm/followers","following_url":"https://api.github.com/users/Claymm/following{/other_user}","gists_url":"https://api.github.com/users/Claymm/gists{/gist_id}","starred_url":"https://api.github.com/users/Claymm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Claymm/subscriptions","organizations_url":"https://api.github.com/users/Claymm/orgs","repos_url":"https://api.github.com/users/Claymm/repos","events_url":"https://api.github.com/users/Claymm/events{/privacy}","received_events_url":"https://api.github.com/users/Claymm/received_events","type":"User","site_admin":false},"body":"Here I simply give the ability to the Homestead.yaml file to set a default server. I was looking for a solution to use the ``vagrant share`` command. Vagrant share was working fine but as there is one unique domain name for multiple sites on my Vagrant box, NGINX was using the first server coming in the list by alphabetical order. With the ``default_server`` directive in the config file, I'm able to select which server would be used by default when I hit the box.\r\n\r\nHere is how I do it from my ``Homestead.yml`` file now:\r\n```yaml\r\nsites:\r\n    - map: myhomestead.app\r\n      to: /home/vagrant/Code/myhomesteadapp/public\r\n      hhvm: true\r\n      default: true\r\n    - map: anotherhomestead.app\r\n      to: /home/vagrant/Code/anotherhomesteadapp/public\r\n      hhvm: true\r\n```","created_at":"2014-12-02T19:12:47Z","updated_at":"2015-01-23T19:42:00Z","closed_at":"2015-01-23T19:42:00Z","merged_at":null,"merge_commit_sha":"a6025701b34b0dd4539bc573b449a22f777de4e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/homestead/pulls/131/commits","review_comments_url":"https://api.github.com/repos/laravel/homestead/pulls/131/comments","review_comment_url":"https://api.github.com/repos/laravel/homestead/pulls/comments/{number}","comments_url":"https://api.github.com/repos/laravel/homestead/issues/131/comments","statuses_url":"https://api.github.com/repos/laravel/homestead/statuses/6a883373a10e8f9a1406764f529432b4b55edd75","head":{"label":"Claymm:master","ref":"master","sha":"6a883373a10e8f9a1406764f529432b4b55edd75","user":{"login":"Claymm","id":668419,"avatar_url":"https://avatars.githubusercontent.com/u/668419?v=3","gravatar_id":"","url":"https://api.github.com/users/Claymm","html_url":"https://github.com/Claymm","followers_url":"https://api.github.com/users/Claymm/followers","following_url":"https://api.github.com/users/Claymm/following{/other_user}","gists_url":"https://api.github.com/users/Claymm/gists{/gist_id}","starred_url":"https://api.github.com/users/Claymm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Claymm/subscriptions","organizations_url":"https://api.github.com/users/Claymm/orgs","repos_url":"https://api.github.com/users/Claymm/repos","events_url":"https://api.github.com/users/Claymm/events{/privacy}","received_events_url":"https://api.github.com/users/Claymm/received_events","type":"User","site_admin":false},"repo":{"id":27448356,"name":"homestead","full_name":"Claymm/homestead","owner":{"login":"Claymm","id":668419,"avatar_url":"https://avatars.githubusercontent.com/u/668419?v=3","gravatar_id":"","url":"https://api.github.com/users/Claymm","html_url":"https://github.com/Claymm","followers_url":"https://api.github.com/users/Claymm/followers","following_url":"https://api.github.com/users/Claymm/following{/other_user}","gists_url":"https://api.github.com/users/Claymm/gists{/gist_id}","starred_url":"https://api.github.com/users/Claymm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Claymm/subscriptions","organizations_url":"https://api.github.com/users/Claymm/orgs","repos_url":"https://api.github.com/users/Claymm/repos","events_url":"https://api.github.com/users/Claymm/events{/privacy}","received_events_url":"https://api.github.com/users/Claymm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Claymm/homestead","description":"The official Laravel local development environment.","fork":true,"url":"https://api.github.com/repos/Claymm/homestead","forks_url":"https://api.github.com/repos/Claymm/homestead/forks","keys_url":"https://api.github.com/repos/Claymm/homestead/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Claymm/homestead/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Claymm/homestead/teams","hooks_url":"https://api.github.com/repos/Claymm/homestead/hooks","issue_events_url":"https://api.github.com/repos/Claymm/homestead/issues/events{/number}","events_url":"https://api.github.com/repos/Claymm/homestead/events","assignees_url":"https://api.github.com/repos/Claymm/homestead/assignees{/user}","branches_url":"https://api.github.com/repos/Claymm/homestead/branches{/branch}","tags_url":"https://api.github.com/repos/Claymm/homestead/tags","blobs_url":"https://api.github.com/repos/Claymm/homestead/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Claymm/homestead/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Claymm/homestead/git/refs{/sha}","trees_url":"https://api.github.com/repos/Claymm/homestead/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Claymm/homestead/statuses/{sha}","languages_url":"https://api.github.com/repos/Claymm/homestead/languages","stargazers_url":"https://api.github.com/repos/Claymm/homestead/stargazers","contributors_url":"https://api.github.com/repos/Claymm/homestead/contributors","subscribers_url":"https://api.github.com/repos/Claymm/homestead/subscribers","subscription_url":"https://api.github.com/repos/Claymm/homestead/subscription","commits_url":"https://api.github.com/repos/Claymm/homestead/commits{/sha}","git_commits_url":"https://api.github.com/repos/Claymm/homestead/git/commits{/sha}","comments_url":"https://api.github.com/repos/Claymm/homestead/comments{/number}","issue_comment_url":"https://api.github.com/repos/Claymm/homestead/issues/comments/{number}","contents_url":"https://api.github.com/repos/Claymm/homestead/contents/{+path}","compare_url":"https://api.github.com/repos/Claymm/homestead/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Claymm/homestead/merges","archive_url":"https://api.github.com/repos/Claymm/homestead/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Claymm/homestead/downloads","issues_url":"https://api.github.com/repos/Claymm/homestead/issues{/number}","pulls_url":"https://api.github.com/repos/Claymm/homestead/pulls{/number}","milestones_url":"https://api.github.com/repos/Claymm/homestead/milestones{/number}","notifications_url":"https://api.github.com/repos/Claymm/homestead/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Claymm/homestead/labels{/name}","releases_url":"https://api.github.com/repos/Claymm/homestead/releases{/id}","created_at":"2014-12-02T19:02:12Z","updated_at":"2014-12-02T22:33:03Z","pushed_at":"2014-12-02T22:33:03Z","git_url":"git://github.com/Claymm/homestead.git","ssh_url":"git@github.com:Claymm/homestead.git","clone_url":"https://github.com/Claymm/homestead.git","svn_url":"https://github.com/Claymm/homestead","homepage":null,"size":164,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"laravel:master","ref":"master","sha":"468c6dea06e9201751ae3d5bfa76890682ff688e","user":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"repo":{"id":18863040,"name":"homestead","full_name":"laravel/homestead","owner":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel/homestead","description":"The official Laravel local development environment.","fork":false,"url":"https://api.github.com/repos/laravel/homestead","forks_url":"https://api.github.com/repos/laravel/homestead/forks","keys_url":"https://api.github.com/repos/laravel/homestead/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/homestead/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/homestead/teams","hooks_url":"https://api.github.com/repos/laravel/homestead/hooks","issue_events_url":"https://api.github.com/repos/laravel/homestead/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/homestead/events","assignees_url":"https://api.github.com/repos/laravel/homestead/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/homestead/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/homestead/tags","blobs_url":"https://api.github.com/repos/laravel/homestead/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/homestead/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/homestead/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/homestead/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/homestead/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/homestead/languages","stargazers_url":"https://api.github.com/repos/laravel/homestead/stargazers","contributors_url":"https://api.github.com/repos/laravel/homestead/contributors","subscribers_url":"https://api.github.com/repos/laravel/homestead/subscribers","subscription_url":"https://api.github.com/repos/laravel/homestead/subscription","commits_url":"https://api.github.com/repos/laravel/homestead/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/homestead/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/homestead/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/homestead/issues/comments/{number}","contents_url":"https://api.github.com/repos/laravel/homestead/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/homestead/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/homestead/merges","archive_url":"https://api.github.com/repos/laravel/homestead/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/homestead/downloads","issues_url":"https://api.github.com/repos/laravel/homestead/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/homestead/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/homestead/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/homestead/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/homestead/labels{/name}","releases_url":"https://api.github.com/repos/laravel/homestead/releases{/id}","created_at":"2014-04-17T01:46:34Z","updated_at":"2015-01-23T19:28:39Z","pushed_at":"2015-01-23T19:28:39Z","git_url":"git://github.com/laravel/homestead.git","ssh_url":"git@github.com:laravel/homestead.git","clone_url":"https://github.com/laravel/homestead.git","svn_url":"https://github.com/laravel/homestead","homepage":null,"size":969,"stargazers_count":517,"watchers_count":517,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":343,"mirror_url":null,"open_issues_count":21,"forks":343,"open_issues":21,"watchers":517,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/homestead/pulls/131"},"html":{"href":"https://github.com/laravel/homestead/pull/131"},"issue":{"href":"https://api.github.com/repos/laravel/homestead/issues/131"},"comments":{"href":"https://api.github.com/repos/laravel/homestead/issues/131/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/homestead/pulls/131/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/homestead/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/laravel/homestead/pulls/131/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/homestead/statuses/6a883373a10e8f9a1406764f529432b4b55edd75"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":9,"deletions":3,"changed_files":2}}