R53--->ELB(Classic+SSL)--->Nginx(just one instance)
My application is running on my Nginx server which is on port 80, there's no problem with the Nginx Instance, it's working perfectly and I can even use it via its public IP.
I have now placed an ELB in my Nginx , ELB registers my instance as healthy and I can hit ELB(classic) public URL to reach my website and I am terminating SSL on ELB itself
Now when I am placing a CNAME entry on Route53 ,and point this to my ELB I reach to
503 Service Unavailable : No server is available to handle this request.
I've been trying out many ways but not sure why is it happening.
My Nginx file looks like this :
server {
listen 80 ;
listen [::]:80;
root /home/ubuntu/partner/public;
index index.html index.htm index.nginx-debian.html;
# Make site accessible from http://partner.superb.community/
#server_name osteriafrancescana.superb.community;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log debug;
#return 301 $schema://www.osteriafrancescana.superb.community$request_uri;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
}