From 4c9c9ab88cec6b8c9364917564484d9170a55b3c Mon Sep 17 00:00:00 2001 From: garhve Date: Sat, 10 Dec 2022 08:59:16 +0800 Subject: change blog content and add font --- posts/1/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'posts/1') diff --git a/posts/1/index.html b/posts/1/index.html index 12dacc9..1839247 100644 --- a/posts/1/index.html +++ b/posts/1/index.html @@ -127,7 +127,7 @@ Due to personal interest, I didn’t choose frame to base my website. I

Due to personal interest, I didn’t choose frame to base my website. I use Nginx but I don’t familiar with it. making it shows my content is not that difficult even that I don’t know much fancy state, but I stucked on SSL.

In order to use https instead of http, I choosed let’s encrypt, which is good for me and it’s free. However, I can only getting my non-www domain working. when it comes to www domain, it still http.

I found solutions all about using return to returning https, but it won’t work

-
server {
+
server {
     server_name www.garhve.com;
 	return 301 https://www.garhve.com$request_uri
 }
@@ -135,7 +135,7 @@ Due to personal interest, I didn’t choose frame to base my website. I
 

After searching and searching, I found where i was getting wrong.

Above statement only return https-www which doesn’t hold any contents, all I need is to redirect the https-www to https-non-www.

So, change to this one

-
server {
+
server {
     listen 80;
 	server_name www.garhve.com garhve.com;
 	return 301 https://garhve.com$request_uri;
-- 
cgit v1.2.3-70-g09d2