Skip to content

Commit

Permalink
Remove default_server from nginx.conf
Browse files Browse the repository at this point in the history
Because when trying to start nginx with oohdir and hines configs in place
we got this error:

```
Dec  2 14:55:49 sylvan systemd[1]: Starting A high performance web server and a reverse proxy server...
Dec  2 14:55:49 sylvan nginx[1653019]: nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/oohdir:15
Dec  2 14:55:49 sylvan nginx[1653019]: nginx: configuration file /etc/nginx/nginx.conf test failed
Dec  2 14:55:49 sylvan systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Dec  2 14:55:49 sylvan systemd[1]: nginx.service: Failed with result 'exit-code'.
Dec  2 14:55:49 sylvan systemd[1]: Failed to start A high performance web server and a reverse proxy server.
```

For #522
  • Loading branch information
philgyford committed Dec 2, 2022
1 parent febdcc9 commit f9e8a63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ upstream hines_app_server {


# Return 444 and close connection if no Host header present
server {
listen 80 default_server;
return 444;
}
# server {
# listen 80 default_server;
# return 444;
# }


# Redirect http and https gyford.com to https://www.gyford.com
Expand Down

0 comments on commit f9e8a63

Please sign in to comment.