Just add this into nginx site config and change the domain.
Also, Please read our background infomation on Securing your complete website with SSL.
server {
listen 80;
server_name cyberbuddy.in www.cyberbuddy.in;
location / {
rewrite ^(.*) https://www.cyberbuddy.in$request_uri;
}
}
server {
listen {IP}:443 ssl;
server_name cyberbuddy.in www.cyberbuddy.in;
ssl_certificate /etc/ssl/certs/cyberbuddy.in/cyberbuddy_in.crt;
ssl_certificate_key /etc/ssl/certs/cyberbuddy.in/cyberbuddy_in.key;
root “/var/www/cyberbuddy.in”;
error_log “/var/log/nginx/error.cyberbuddy.in.log”;
location / {
try_files $uri $uri/ index.html;
}
}
Yash
Thanks a lot, it’s very helpful
Rajat Malik
Appreciate mate!
Let me know about more topics which you are facing issues, I will try to post the best solution. 🙂
saurabh batham
Awesome buddy ……..It is really helpful.
praveen kumar sharma
it really helping me.
the implementation of SSL.
Josef
It’s very easy to find out any matter on net as compared to textbooks, as I found this paragraph at this
web site.