Redirect HTTP to HTTPS in Nginx

Before we redirect all http to https in Nginx, we should have installed an SSL certificate successfully. server { listen 80 default_server; server_name _; return 301 https://$host$request_uri; } This listens on port 80. It’s also the port 80 default server. It’s assumed that it’s the only server block listening on port 80. The server_name is […]

Let’sEncrypt: It seems the CA server is busy now

Today I install the free ssl of Let’sEncrypt for dreamglasses.com, and meet the following error: It seems the CA server is busy now. I checked the installation error log and got the following information from https://curl.haxx.se/libcurl/c/libcurl-errors.html curl: (35) SSL connect error When we use curl to visit https, nss is too old, so I upgrade […]

Problems with the CURL extension While Installing Zen-cart Under Nginx

“Problems with the CURL extension – PHP is reporting that CURL is not present. Could not use CURL to contact a live server” How to deal with this issue? First you need to update your CURL, visit https://curl.haxx.se/download/, and check the latest curl, say curl-7.61.0.tar.gz; Login your hosting via SecureCRT or putty, and run: Download: wget https://curl.haxx.se/download/curl-7.61.0.tar.gz […]

X-cart Seo For Nginx

Create a file called xcart.conf, and add the following code in this new file: if ($uri !~ “^/(payment|admin|provider|partner)/”){ set $rule_0 1$rule_0; } if ($request_filename !~ “\.(gif|jpe?g|png|js|css|swf|php|ico)$”){ set $rule_0 2$rule_0; } if (!-f $request_filename){ set $rule_0 3$rule_0; } if (!-d $request_filename){ set $rule_0 4$rule_0; } if ($request_filename !~ “-l”){ set $rule_0 5$rule_0; } if ($rule_0 = […]