Re: Permanent Redirect on nginx

2016-04-30 Thread Francis Daly
On Fri, Apr 29, 2016 at 07:33:04AM +, Mumanyi, Bravismore wrote: Hi there, > Francis, your config did magic! Kudos... Good to hear you have it working, thanks. > However, I just wondering the cause for the redirect URL having two trailing > slashes "//" i.e. "http://archives.unam.edu.na//"

RE: Permanent Redirect on nginx

2016-04-29 Thread Mumanyi, Bravismore
with your server # name, e.g. archives.foobar.com #server_name _; server_name archives.unam.edu.na; Regards -Original Message- From: nginx [mailto:nginx-boun...@nginx.org] On Behalf Of Francis Daly Sent: 28 April 2016 18:15 To: nginx@nginx.org Subject: Re: Permanent Redirect on nginx O

Re: Permanent Redirect on nginx

2016-04-28 Thread Francis Daly
On Thu, Apr 28, 2016 at 02:47:03PM +, Mumanyi, Bravismore wrote: Hi there, > My org has changed domain from unam.na to unam.edu.na. I intend to effect a > permanent redirect on Nginx. Have two server{} blocks. The one with "server_name new-name;" should be the fuller one,

Permanent Redirect on nginx

2016-04-28 Thread Mumanyi, Bravismore
Dear Nginx Community My org has changed domain from unam.na to unam.edu.na. I intend to effect a permanent redirect on Nginx. I have tried the lines in bold below but browsers are complaining of too many redirects. Any tips on how I can adjust the config file for permanent redirect