Skip to content
Snippets Groups Projects
Commit 2f890759 authored by nimrod's avatar nimrod
Browse files

Default server redirects to www.shore.co.il.

In case the host isn't passed (or isn't known), redirect to
www.shore.co.il.
parent aae018af
No related branches found
No related tags found
No related merge requests found
server {
listen 80 default_server;
listen [::]:80 default_server;
location / { return 301 https://www.shore.co.il$request_uri; }
}
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
include snippets/ssl.conf;
location / { return 301 https://www.shore.co.il$request_uri; }
}
......@@ -2,8 +2,8 @@ map $host $lam { default ldap-account-manager; }
map $host $kodi { default kodi.shore.co.il; }
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 80;
listen [::]:80;
server_name www.shore.co.il;
include snippets/robots-allow-all.conf;
include snippets/ads-txt.conf;
......@@ -17,8 +17,8 @@ server {
}
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
listen 443 ssl;
listen [::]:443 ssl;
server_name www.shore.co.il;
include snippets/robots-allow-all.conf;
include snippets/ads-txt.conf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment