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

Re: http to https redirect

$
0
0
I tried with below config
server {
listen 3000; # Where other service is listening
#listen 16000; # Where other service is listening
server_name http://54.205.97.56:3000
root /var/www/localhost/pv4azure/templates;
index index.html index.htm;

ssl on;
ssl_certificate /etc/nginx/apache.crt;
ssl_certificate_key /etc/nginx/apache.key;
return 301 https://54.205.97.56:1337;

#location / {
#proxy_pass http://localhost:3000/;
# proxy_pass http://localhost:15000/;
#}

}

https://localhost:1337/ is showing

Welcome to Nginx !!

but it is not loading the my website page

Viewing all articles
Browse latest Browse all 972

Latest Images

Trending Articles



Latest Images

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