Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

Re: http to https redirect

$
0
0
sachin.tiwari50 Wrote:
-------------------------------------------------------
> listen 80;
> server_name http://localhost:3000;
> return 301 https://localhost:3000;

> https://locahost:80 but it is not working

There is no ssl listen directive so this ain't gonna work.

Viewing all articles
Browse latest Browse all 972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>