Skip to content

Commit

Permalink
Redirect all requests to docs.wifi.service.gov.uk
Browse files Browse the repository at this point in the history
Currently we serve the docs from both:
docs.wifi.service.gov.uk
www.docs.wifi.service.gov.uk

Make www requests are being 301 redirected
  • Loading branch information
emileswarts committed Jan 31, 2019
1 parent 8f3d083 commit 8197a8c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
worker_processes 1;
daemon off;

error_log stderr;
events { worker_connections 1024; }

pid /tmp/nginx.pid;

http {
charset utf-8;

server {
listen <%= ENV["PORT"] %>;
server_name localhost;
return 301 https://docs.wifi.service.gov.uk$request_uri;
}
}

0 comments on commit 8197a8c

Please sign in to comment.