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
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