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

Trending Articles


Practice Sheet of Right form of verbs for HSC Students


Sarah Samis, Emil Bove III


ZARIA CUMMINGS


Need radio code for IVECO Delphi Aptiv FJ5 RBT M16


Black Angus Grilled Artichokes


Ed Sheeran – Sapphire – Pre-Single [iTunes Plus M4A]


Sunny Garcia’s Ex-Wife Colleen McCullough


99 God Status for Whatsapp, Facebook


Funeral of Sir Warwick Franklin


MHDD



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