Tag Archives | Nginx

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 }

Centmin Mod: Install Phpmyadmin

Step 1: Step 2 If you get the error: You can download it here Result: Step 3 Now you can access phpmyadmin via address: https://tutorialspots.com/6936_mysqladmin27567/ Important note: you only access via server_name defined main hostname in virtual.conf and not via ip access If you see error 404 not found, please check file /etc/csf/csf.conf Must place […]

Read full story Comments { 0 }

Centmin Mod:how to add new Domain/Subdomain Account

Centmin Mod:how to add new Domain/Subdomain Account Method 1: Use SSH command line: Output: Note: -s y mean ssl self-signed create. The below process will automatically create some file for configuration: Nginx vhost conf: /usr/local/nginx/conf/conf.d/tutorialspots.com.conf Nginx SPDY SSL vhost conf: /usr/local/nginx/conf/conf.d/tutorialspots.com.ssl.conf Some information: Vhost public web root: /home/nginx/domains/tutorialspots.com/public SSL configure: /usr/local/nginx/conf/ssl_include.conf Self-signed SSL Certificate: /usr/local/nginx/conf/ssl/tutorialspots.com/tutorialspots.com.crt […]

Read full story Comments { 1 }