Merge pull request #2569 from OmgImAlexis/patch-1

Reload nginx after adding default vhost file
This commit is contained in:
Jose Diaz-Gonzalez
2017-01-16 00:49:55 -07:00
committed by GitHub

View File

@@ -92,6 +92,8 @@ server {
}
```
Make sure to reload nginx after creating this file by running `service nginx reload`.
This will catch all unknown HOST header values and return a `410 Gone` response. You can replace the `return 410;` with `return 444;` which will cause nginx to not respond to requests that do not match known domains (connection refused).
The configuration file must be loaded before `/etc/nginx/conf.d/dokku.conf`, so it can not be arranged as a vhost in `/etc/nginx/sites-enabled` that is only processed afterwards.