Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Latest commit

 

History

History

nginx-301

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Nginx 301

Nginx is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server

The configuration within this repo is designed to enable 301 redirects for services that have moved domains permanently from GOV.UK PaaS.

To deploy this app

cf unmap-route OLD_APP_NAME cloudapps.digital --hostname HOSTNAME-TO-BE-REDIRECTED

Where OLD_APP_NAME is the name of the application that now exists on a new host

cf push HOSTNAME-TO-BE-REDIRECTED --var new-domain=MY-NEW-DOMAIN

Where MY-NEW-DOMAIN is your new domain name e.g. www.example.com

Verify your redirect with

curl -L -I HOSTNAME-TO-BE-REDIRECTED.cloudapps.digital