Welcome! Log In Create A New Profile

Advanced

Re: Have full URL redirect to SSL (not just $server_name and $request_uri)

Edho Arief
November 19, 2014 09:40AM
On Wed, Nov 19, 2014 at 11:22 PM, biot023 <nginx-forum@nginx.us> wrote:
> Ah, will do, cheers -- I had a look through the NGINX variables, but it
> wasn't really clear which variable did what.
> I suppose something like:
>
> location / {
> return 301 https://$uri;
> }
>
> Wouldn't work?
>

generic redirect looks like this

return 301 https://$host$request_uri;

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Have full URL redirect to SSL (not just $server_name and $request_uri)

biot023 November 19, 2014 07:16AM

Re: Have full URL redirect to SSL (not just $server_name and $request_uri)

Edho Arief November 19, 2014 07:18AM

Re: Have full URL redirect to SSL (not just $server_name and $request_uri)

biot023 November 19, 2014 09:22AM

Re: Have full URL redirect to SSL (not just $server_name and $request_uri)

Edho Arief November 19, 2014 09:40AM

Re: Have full URL redirect to SSL (not just $server_name and $request_uri)

biot023 November 19, 2014 10:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 324
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready