https is not working with my installed ssl (nginx & letsencrypt)
up vote
0
down vote
favorite
I have installed ssl certificate using letsencrypt in my nginx server. it works perfectly in the follwoing domain:
http://shajao.com
site gets redirected perfectly. and ssl is working nicely with an A+ score in ssllabs
i followed this instruction:
https://medium.com/@jnwarp/lets-encrypt-configure-nginx-with-a-perfect-score-on-ssl-labs-6fc10d2e4bf7
But i tried to do the same thing on same server but different domain name but cant get it to work.
Basically ssl is not working. So when i hit the domain in browser it starts a infinite redirection loop. So i stopped the http to https redirect and found that https is not working which gets the site redirected to http.
My dns is managed using cloudflare and i tried turning off the ssl feature from there as well.
My server code:
server {
listen 80;
listen [::]:80;
server_name getcoursetube.com www.getcoursetube.com;
root /media/6sense/www/getcoursetube.com;
index index.html index.htm index.nginx-debian.html;
# return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
root /media/6sense/www/getcoursetube.com;
index index.html index.htm index.nginx-debian.html;
server_name getcoursetube.com www.getcoursetube.com;
location / {
try_files $uri$args $uri$args/ /index.html;
}
error_log /media/6sense/www/getcoursetube.com/logs/error.log;
access_log /media/6sense/www/getcoursetube.com/logs/access.log;
#WARNING: Please read before adding the lines below!
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
ssl_certificate /etc/letsencrypt/live/getcoursetube.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/getcoursetube.com/privkey.pem;
ssl_trusted_certificate /etc/nginx/ssl/chain.pem;
}
ssl nginx https server cloudflare
add a comment |
up vote
0
down vote
favorite
I have installed ssl certificate using letsencrypt in my nginx server. it works perfectly in the follwoing domain:
http://shajao.com
site gets redirected perfectly. and ssl is working nicely with an A+ score in ssllabs
i followed this instruction:
https://medium.com/@jnwarp/lets-encrypt-configure-nginx-with-a-perfect-score-on-ssl-labs-6fc10d2e4bf7
But i tried to do the same thing on same server but different domain name but cant get it to work.
Basically ssl is not working. So when i hit the domain in browser it starts a infinite redirection loop. So i stopped the http to https redirect and found that https is not working which gets the site redirected to http.
My dns is managed using cloudflare and i tried turning off the ssl feature from there as well.
My server code:
server {
listen 80;
listen [::]:80;
server_name getcoursetube.com www.getcoursetube.com;
root /media/6sense/www/getcoursetube.com;
index index.html index.htm index.nginx-debian.html;
# return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
root /media/6sense/www/getcoursetube.com;
index index.html index.htm index.nginx-debian.html;
server_name getcoursetube.com www.getcoursetube.com;
location / {
try_files $uri$args $uri$args/ /index.html;
}
error_log /media/6sense/www/getcoursetube.com/logs/error.log;
access_log /media/6sense/www/getcoursetube.com/logs/access.log;
#WARNING: Please read before adding the lines below!
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
ssl_certificate /etc/letsencrypt/live/getcoursetube.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/getcoursetube.com/privkey.pem;
ssl_trusted_certificate /etc/nginx/ssl/chain.pem;
}
ssl nginx https server cloudflare
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have installed ssl certificate using letsencrypt in my nginx server. it works perfectly in the follwoing domain:
http://shajao.com
site gets redirected perfectly. and ssl is working nicely with an A+ score in ssllabs
i followed this instruction:
https://medium.com/@jnwarp/lets-encrypt-configure-nginx-with-a-perfect-score-on-ssl-labs-6fc10d2e4bf7
But i tried to do the same thing on same server but different domain name but cant get it to work.
Basically ssl is not working. So when i hit the domain in browser it starts a infinite redirection loop. So i stopped the http to https redirect and found that https is not working which gets the site redirected to http.
My dns is managed using cloudflare and i tried turning off the ssl feature from there as well.
My server code:
server {
listen 80;
listen [::]:80;
server_name getcoursetube.com www.getcoursetube.com;
root /media/6sense/www/getcoursetube.com;
index index.html index.htm index.nginx-debian.html;
# return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
root /media/6sense/www/getcoursetube.com;
index index.html index.htm index.nginx-debian.html;
server_name getcoursetube.com www.getcoursetube.com;
location / {
try_files $uri$args $uri$args/ /index.html;
}
error_log /media/6sense/www/getcoursetube.com/logs/error.log;
access_log /media/6sense/www/getcoursetube.com/logs/access.log;
#WARNING: Please read before adding the lines below!
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
ssl_certificate /etc/letsencrypt/live/getcoursetube.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/getcoursetube.com/privkey.pem;
ssl_trusted_certificate /etc/nginx/ssl/chain.pem;
}
ssl nginx https server cloudflare
I have installed ssl certificate using letsencrypt in my nginx server. it works perfectly in the follwoing domain:
http://shajao.com
site gets redirected perfectly. and ssl is working nicely with an A+ score in ssllabs
i followed this instruction:
https://medium.com/@jnwarp/lets-encrypt-configure-nginx-with-a-perfect-score-on-ssl-labs-6fc10d2e4bf7
But i tried to do the same thing on same server but different domain name but cant get it to work.
Basically ssl is not working. So when i hit the domain in browser it starts a infinite redirection loop. So i stopped the http to https redirect and found that https is not working which gets the site redirected to http.
My dns is managed using cloudflare and i tried turning off the ssl feature from there as well.
My server code:
server {
listen 80;
listen [::]:80;
server_name getcoursetube.com www.getcoursetube.com;
root /media/6sense/www/getcoursetube.com;
index index.html index.htm index.nginx-debian.html;
# return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
root /media/6sense/www/getcoursetube.com;
index index.html index.htm index.nginx-debian.html;
server_name getcoursetube.com www.getcoursetube.com;
location / {
try_files $uri$args $uri$args/ /index.html;
}
error_log /media/6sense/www/getcoursetube.com/logs/error.log;
access_log /media/6sense/www/getcoursetube.com/logs/access.log;
#WARNING: Please read before adding the lines below!
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
ssl_certificate /etc/letsencrypt/live/getcoursetube.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/getcoursetube.com/privkey.pem;
ssl_trusted_certificate /etc/nginx/ssl/chain.pem;
}
ssl nginx https server cloudflare
ssl nginx https server cloudflare
edited yesterday
asked yesterday
Ahsan Aasim
12211
12211
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
After spending hours, i tested my cerificate on digicert. And found that digicert is showing a ssl certificate that is issued by cloudflare.
I turned off ssl from cloudflare but it didnt work. So i had to quit cloudflare.
I removed my site from cloudflare and managed my dns through godaddy (from where i purchased my domain). And it worked perfectly.
Let me know if anybody has better answer and made it work through cloudflare as well.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
After spending hours, i tested my cerificate on digicert. And found that digicert is showing a ssl certificate that is issued by cloudflare.
I turned off ssl from cloudflare but it didnt work. So i had to quit cloudflare.
I removed my site from cloudflare and managed my dns through godaddy (from where i purchased my domain). And it worked perfectly.
Let me know if anybody has better answer and made it work through cloudflare as well.
add a comment |
up vote
0
down vote
After spending hours, i tested my cerificate on digicert. And found that digicert is showing a ssl certificate that is issued by cloudflare.
I turned off ssl from cloudflare but it didnt work. So i had to quit cloudflare.
I removed my site from cloudflare and managed my dns through godaddy (from where i purchased my domain). And it worked perfectly.
Let me know if anybody has better answer and made it work through cloudflare as well.
add a comment |
up vote
0
down vote
up vote
0
down vote
After spending hours, i tested my cerificate on digicert. And found that digicert is showing a ssl certificate that is issued by cloudflare.
I turned off ssl from cloudflare but it didnt work. So i had to quit cloudflare.
I removed my site from cloudflare and managed my dns through godaddy (from where i purchased my domain). And it worked perfectly.
Let me know if anybody has better answer and made it work through cloudflare as well.
After spending hours, i tested my cerificate on digicert. And found that digicert is showing a ssl certificate that is issued by cloudflare.
I turned off ssl from cloudflare but it didnt work. So i had to quit cloudflare.
I removed my site from cloudflare and managed my dns through godaddy (from where i purchased my domain). And it worked perfectly.
Let me know if anybody has better answer and made it work through cloudflare as well.
answered yesterday
Ahsan Aasim
12211
12211
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53349206%2fhttps-is-not-working-with-my-installed-ssl-nginx-letsencrypt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown