forked from mirrors/bookwyrm
Merge pull request #1360 from bookwyrm-social/nginx-www-redirect
Use non-www domain canonically
This commit is contained in:
commit
4fea674d56
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ server {
|
||||||
# listen 443 ssl http2;
|
# listen 443 ssl http2;
|
||||||
#
|
#
|
||||||
# server_name your-domain.com;
|
# server_name your-domain.com;
|
||||||
|
|
||||||
|
# if ($host != "you-domain.com") {
|
||||||
|
# return 301 $scheme://your-domain.com$request_uri;
|
||||||
|
# }
|
||||||
#
|
#
|
||||||
# # SSL code
|
# # SSL code
|
||||||
# ssl_certificate /etc/nginx/ssl/live/your-domain.com/fullchain.pem;
|
# ssl_certificate /etc/nginx/ssl/live/your-domain.com/fullchain.pem;
|
||||||
|
|
Loading…
Reference in a new issue