Tag Archives | Nginx

How to create websocket secure by using NodeJS

Method 1: In this article: How to run a https website with Nodejs, express and socket.io Method 2: use NGINX file .conf Now, you can use websocket to create websocket secure: Read more: Example chat application using Nodejs + Socket.io Example chat application using Nodejs + ws Example chat application using Nodejs + Websocket

Read full story Comments { 0 }

How to create a free Let’s Encrypt certificate on CentOS with NGINX

Step 1: Step 2: Result: Result: You can use crond to run below command twice per day: https://certbot.eff.org/#centos6-nginx

Read full story Comments { 0 }

Function apache_request_headers on Nginx

Function apache_request_headers supports only on Apache, how to use it on Nginx. Here is the solution:

Read full story Comments { 0 }

How to fix error: 504 Gateway Time-out on Nginx

Sometimes, you get the error: 504 Gateway Time-out on Nginx like this figure, how to fix it. This is simple. You follow 2 below steps: Step 1: Add this line to your PHP file or You can change 120 to the seconds you want. Step 2: You edit the file .conf like /etc/nginx/conf.d/default.conf, you will […]

Read full story Comments { 0 }

How to install LEMP stack on Centos 7

There are many methods to install LEMP stack (Linux, Nginx, MariaDB & PHP-FPM) on Centos 7. Here we present to you method by using VPSSIM script. First, check your version of the OS of your server by using two command lines below: Example result: We use Centos 7.2 64bits for example. Now, begin to install […]

Read full story Comments { 0 }

How to redirect an old domain to the new using Nginx

Example: you want to change old domain (tutorialspots.com) to the new (tutorialspots.net). There are some reasons e.x your domain is banned by Google. Edit your .conf file e.x: /usr/local/nginx/conf/conf.d/tutorialspots.com.conf or or For SSL and non-SSL

Read full story Comments { 0 }

Centmin Mod: enable IPv6 with Nginx

To check if your Nginx server support Ipv6, you can use this command: Here the example with the server that support Ipv6 you see –with-ipv6. If your nginx server doesn’t support ipv6, you won’t see it, and you will get this error: How to fix it? You must recompile Nginx on your server. Step 1: […]

Read full story Comments { 0 }

Centmin Mod: how to remove Domain/Subdomain Account

In previous tutorial, we learn how to add new Domain/Subdomain Account Now, how to remove Domain/Subdomain Account? We see in that tutorial, after add new Domain/Subdomain Account: Now, we do follow this

Read full story Comments { 0 }

Using IPv6 with Nginx

Here is the example of Using IPv6 with Nginx in Centos and Centmin Mod Step 1: Go to folder: /usr/local/nginx/conf/conf.d We can find file tutorialspots.com.conf Step 2: add line Step 3: restart nginx With your domain, you can use CloudFlare to use IPV6

Read full story Comments { 0 }

Nginx .htaccess alternative for WordPress

After migration from apache to nginx, your website can’t run. You will get the error: Because Nginx doesn’t support .htaccess file. You can follow these steps below: Step 1: Find your domain conf file i.e. /usr/local/nginx/conf/conf.d/tutorialspots.com.conf Step 2: use code: I.e. Step 3: restart nginx Done!

Read full story Comments { 0 }