<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NginX &#8211; King Host Coupon</title>
	<atom:link href="https://kinghostcoupon.com/tag/nginx/feed/" rel="self" type="application/rss+xml" />
	<link>https://kinghostcoupon.com</link>
	<description>Domain Hosting VPS/Servers coupon codes</description>
	<lastBuildDate>Tue, 16 Nov 2021 14:21:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.6</generator>
	<item>
		<title>Openlitespeed vs Nginx vs Apache, which is the best web server?</title>
		<link>https://kinghostcoupon.com/openlitespeed-vs-nginx-vs-apache-which-is-the-best-web-server/</link>
					<comments>https://kinghostcoupon.com/openlitespeed-vs-nginx-vs-apache-which-is-the-best-web-server/#respond</comments>
		
		<dc:creator><![CDATA[Anh]]></dc:creator>
		<pubDate>Tue, 16 Nov 2021 14:20:06 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[NginX]]></category>
		<category><![CDATA[OpenLiteSpeed]]></category>
		<guid isPermaLink="false">https://kinghostcoupon.com/?p=440</guid>

					<description><![CDATA[<p>Between OpenLiteSpeed, Apache, and NGINX, which is the best webserver? Let&#8217;s find the answer in the following article. What is OpenLiteSpeed? OpenLiteSpeed ​​is the open-source version of LiteSpeed ​​WebServer Enterprise.... </p>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/openlitespeed-vs-nginx-vs-apache-which-is-the-best-web-server/">Openlitespeed vs Nginx vs Apache, which is the best web server?</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Between OpenLiteSpeed, Apache, and NGINX, which is the best webserver? Let&#8217;s find the answer in the following article.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-441" src="https://kinghostcoupon.com/wp-content/uploads/2021/11/openlitespeed-nginx-apache.jpg" alt="openlitespeed nginx apache" width="600" height="337" srcset="https://kinghostcoupon.com/wp-content/uploads/2021/11/openlitespeed-nginx-apache.jpg 600w, https://kinghostcoupon.com/wp-content/uploads/2021/11/openlitespeed-nginx-apache-300x169.jpg 300w, https://kinghostcoupon.com/wp-content/uploads/2021/11/openlitespeed-nginx-apache-383x214.jpg 383w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<h2>What is OpenLiteSpeed?</h2>
<p>OpenLiteSpeed ​​is the open-source version of LiteSpeed ​​WebServer Enterprise. It has all the necessary features found in LiteSpeed ​​WebServer including LScache.</p>
<p>This is the version for high-traffic websites. However, it does not integrate into any server administrator like DirectAdmin or cPanel.</p>
<p>The advantage of OpenLiteSpeed ​​is that it helps to reduce bandwidth usage, extremely fast technology, good support for external applications, SSL/Security Control support, etc.</p>
<h2>What is Apache?</h2>
<p>Apache (or Apache HTTP Server) is also open source web server software, developed and operated by the Apache Software Foundation. It can be said that Apache is one of the oldest web servers and is trusted by many users.</p>
<p>The advantage of Apache is that it is a stable free and open-source software. Apache also regularly updates security patches, the configuration is user-friendly, cross-platform, and has a large user community so it can support you at any time.</p>
<h2>What is NGINX?</h2>
<p>Similar to Apache, <a href="https://kinghostcoupon.com/what-is-nginx-how-to-install-and-configure-nginx-web-server/">Nginx</a> is also a famous and extremely popular open-source web server software. Although Nginx was originally used to serve HTTP web pages, it is now used as a reverse proxy, HTTP load balancer, and email proxy.</p>
<p>The advantage of Nginx is that it can handle more than 10,000 connections with low memory at the same time. In addition, you can use Cache to speed up Reverse Proxy, Apache also has flexible configuration and the ability to save query logs.</p>
<h2>OpenLiteSpeed ​​– Apache – NGINX – which is the best web server?</h2>
<p>This is a question many people ask when choosing to use these web servers. So between OpenLiteSpeed, Apache, NGINX, which webserver should you choose?</p>
<p>The answer to this question is not an easy one. There is no one-size-fits-all solution to choose Nginx over Apache or LiteSpeed ​​over Nginx. If you find yourself in a position where you might choose one over the other, you&#8217;ll really want to do your research and dig into how your users will use the sites running on the server and technology. that those sites are using, as that will help you come to a decision.</p>
<p>Apache is a great choice for Admins and Hosts who might want something very customizable as it has a rich collection of precompiled modules that can be added. These modules range from anything from authentication schemes to package-specific support for PHP, TCL, Python, Ruby, and more.</p>
<p>Apache is also reliable, stable, and considered beginner-friendly when setting it up for the first time. Because Apache is so widely used, it receives regular security and feature updates and has a large base to support.</p>
<p>Also, one important thing to remember &#8211; Apache runs applications that use CGI very well. For example, while Nginx technically supports CGI scripts, setting it up isn&#8217;t easy.</p>
<p>One feature of Apache that many criticize is its use of the .htaccess file to control things like rewrites and search engine indexing. Once these files are enabled, Apache must navigate the entire directory leading back to the parent directory and execute the commands listed in each of these .htaccess files. As you can imagine, this increases load times and consumes server resources.</p>
<p>On the other hand, Nginx can act as a reverse proxy in front of Apache or as its own web server, and there is no equivalent feature for .htaccess files. Applications written in Python and Ruby are known to be highly performant when running on the Nginx web server. With a load balancer, some optimizations, and Nginx, you can have a super performant setup. Nginx is also notoriously difficult to set up compared to contemporary Apache.</p>
<p>Please try to set up a test environment for the 3 web servers above.</p>
<p>As you all know about WordPress, caching is very important. So we have to make sure to use a suitable caching solution for each server in this test.</p>
<p>All of our tests were done with Keep-Alive enabled as well as pairing each server with a suitable cache option. And the result we got was that OpenLiteSpeed ​​outperformed NGINX and Apache in all tests.</p>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/openlitespeed-vs-nginx-vs-apache-which-is-the-best-web-server/">Openlitespeed vs Nginx vs Apache, which is the best web server?</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://kinghostcoupon.com/openlitespeed-vs-nginx-vs-apache-which-is-the-best-web-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Redirect HTTP to HTTPS with Nginx Web Server?</title>
		<link>https://kinghostcoupon.com/how-to-redirect-http-to-https-with-nginx-web-server/</link>
					<comments>https://kinghostcoupon.com/how-to-redirect-http-to-https-with-nginx-web-server/#respond</comments>
		
		<dc:creator><![CDATA[Anh]]></dc:creator>
		<pubDate>Mon, 01 Nov 2021 18:09:59 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[NginX]]></category>
		<guid isPermaLink="false">https://kinghostcoupon.com/?p=358</guid>

					<description><![CDATA[<p>After we successfully installed Let&#8217;s Encrypt SSL for Nginx, you will need to configure it to redirect from HTTP to HTTPS. Here&#8217;s how. One of the common tasks for running... </p>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/how-to-redirect-http-to-https-with-nginx-web-server/">How to Redirect HTTP to HTTPS with Nginx Web Server?</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>After we successfully installed <a href="https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/">Let&#8217;s Encrypt SSL for Nginx</a>, you will need to configure it to redirect from HTTP to HTTPS. Here&#8217;s how.</p>
<p>One of the common tasks for running the <a href="https://kinghostcoupon.com/what-is-nginx-how-to-install-and-configure-nginx-web-server/">Nginx Web Server</a> is transferring the data stream from the HTTP protocol over the HTTPS (more secure version) of the website.</p>
<p>Unlike HTTP, all requests and responses are sent in unencrypted plain text. HTTPS uses TLS/SSL to encrypt the transmission between the client and the server.</p>
<p>This article will help you know how to configure HTTP to HTTPS redirect using Nginx.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-359" src="https://kinghostcoupon.com/wp-content/uploads/2021/11/http-to-https-nginx.jpg" alt="Redirect http to https on NginX" width="620" height="343" srcset="https://kinghostcoupon.com/wp-content/uploads/2021/11/http-to-https-nginx.jpg 620w, https://kinghostcoupon.com/wp-content/uploads/2021/11/http-to-https-nginx-300x166.jpg 300w" sizes="(max-width: 620px) 100vw, 620px" /></p>
<p>To configure redirects, you must modify the Nginx configuration file, which is usually located in <strong>/etc/nginx/nginx.conf</strong> or <strong>/etc/nginx/sites-available</strong>, <strong>/usr/local/nginx/conf</strong> and <strong>/usr/local/ etc/nginx</strong>.</p>
<p>Once you have finished editing the configuration file, you must save your edits and exit. Then you reload the Nginx service by command below:</p>
<p><code><span style="color: #ff0000;"><em>systemctl reload nginx</em></span></code></p>
<h2>Redirect a website</h2>
<p>You have multiple websites and only want some to redirect to HTTPS. Open the Nginx configuration file and insert the following code:</p>
<p><code><span style="color: #ff0000;"><em>server {</em></span></code><br />
<code><span style="color: #ff0000;"><em>listen 80 default_server;</em></span></code><br />
<code><span style="color: #ff0000;"><em>server_name domain.com www.domain.com;</em></span></code><br />
<code><span style="color: #ff0000;"><em>return 301 https://$host$request_uri;</em></span></code><br />
<code><span style="color: #ff0000;"><em>}</em></span></code></p>
<p><span style="text-decoration: underline;"><em><strong>Meaning of each line:</strong></em></span></p>
<ul>
<li><strong>listen 80</strong> – block server will receive incoming data at Port 80</li>
<li><strong>server_name domain.com www.domain.com</strong> – the domain name of the server (you change this information to match your domain name)</li>
<li><strong>return 301</strong> https://$host$request_uri – redirect traffic to the HTTPS version of the site</li>
</ul>
<h2>Redirect all websites on the server</h2>
<p>If all the websites hosted on the server use HTTPS and you don&#8217;t want to create separate server blocks for each site, you can create a master server block to redirect all HTTP requests to HTTPS.</p>
<p>Create the main server block in the Nginx configuration file:</p>
<p><code><span style="color: #ff0000;"><em>server {</em></span></code><br />
<code><span style="color: #ff0000;"><em>listen 80 default_server;</em></span></code><br />
<code><span style="color: #ff0000;"><em>server_name _;</em></span></code><br />
<code><span style="color: #ff0000;"><em>return 301 https://$host$request_uri;</em></span></code><br />
<code><span style="color: #ff0000;"><em>}</em></span></code></p>
<p>Parameter <strong>server_name _;</strong> will take any website&#8217;s hostname.</p>
<h2>Only receive SSL Certificates connections</h2>
<p>Add the following code to make the server accept only SSL connections on Port 443:</p>
<p><code><span style="color: #ff0000;"><em>server {</em></span></code><br />
<code><span style="color: #ff0000;"><em>listen 443 ssl default_server;</em></span></code><br />
<code><span style="color: #ff0000;"><em>server_name my_website.com;</em></span></code><br />
<code><span style="color: #ff0000;"><em>}</em></span></code></p>
<p><span style="text-decoration: underline;"><em><strong>Note:</strong></em></span></p>
<ul>
<li>You can add a new server block for another website.</li>
</ul>
<h2>Redirect Domain</h2>
<p>This happens when you want to change the domain name extension (like .net or .org, info) to all .com domains or you want to redirect from the old domain to the new domain.</p>
<p><code><span style="color: #ff0000;"><em>server {</em></span></code><br />
<code><span style="color: #ff0000;"><em>listen 80;</em></span></code><br />
<code><span style="color: #ff0000;"><em>listen 443 ssl;</em></span></code><br />
<code><span style="color: #ff0000;"><em>server_name www.old_domain.com;</em></span></code><br />
<code><span style="color: #ff0000;"><em>return 301 $scheme://www.new_domain.com$request_uri;</em></span></code><br />
<code><span style="color: #ff0000;"><em>}</em></span></code></p>
<h2>Redirect from www to non-www</h2>
<p>When you want the website link to not appear www, enter the following code:</p>
<p><code><span style="color: #ff0000;"><em>server {</em></span></code><br />
<code><span style="color: #ff0000;"><em>server_name www.domain.com;</em></span></code><br />
<code><span style="color: #ff0000;"><em>return 301 $scheme://domain.com$request_uri;</em></span></code><br />
<code><span style="color: #ff0000;"><em>}</em></span></code></p>
<p>It works as well as a website redirects.</p>
<p>When the configuration is complete, all traffic from HTTP will automatically switch to HTTPS. Checking the site will return an HTTP status code &#8220;301 redirect&#8221;. You use the curl tool to check, type the command:</p>
<p><code><span style="color: #ff0000;"><em>curl -I http://domain.com/</em></span></code></p>
<p>If you see “HTTP/1.1 301 Moved Permanently” and “Location: https://domain.com” then you are successful.</p>
<p>Good luck to you!</p>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/how-to-redirect-http-to-https-with-nginx-web-server/">How to Redirect HTTP to HTTPS with Nginx Web Server?</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://kinghostcoupon.com/how-to-redirect-http-to-https-with-nginx-web-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Let&#8217;s Encrypt SSL for NginX on CentOS 7</title>
		<link>https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/</link>
					<comments>https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Anh]]></dc:creator>
		<pubDate>Mon, 01 Nov 2021 17:46:34 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS 7]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<category><![CDATA[NginX]]></category>
		<guid isPermaLink="false">https://kinghostcoupon.com/?p=353</guid>

					<description><![CDATA[<p>In the previous article, we had a tutorial on how to install the Let&#8217;s Encrypt SSL certificate for Apache on CentOS 7, in this article you will know how to... </p>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/">How to Install Let&#8217;s Encrypt SSL for NginX on CentOS 7</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In the previous article, we had a tutorial on <a href="https://kinghostcoupon.com/how-to-install-free-lets-encrypt-ssl-for-apache-webserver-on-centos-7/">how to install the Let&#8217;s Encrypt SSL certificate for Apache on CentOS 7</a>, in this article you will know how to install Let&#8217;s Encrypt for <a href="https://kinghostcoupon.com/what-is-nginx-how-to-install-and-configure-nginx-web-server/">Nginx Webserver</a> on CentOS 7 server.</p>
<p><img decoding="async" class="aligncenter wp-image-355" src="https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-encrypt-for-nginx-on-centos-7.jpg" alt="Install Let's Encrypt for NginX on Cent OS 7" width="598" height="331" srcset="https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-encrypt-for-nginx-on-centos-7.jpg 620w, https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-encrypt-for-nginx-on-centos-7-300x166.jpg 300w" sizes="(max-width: 598px) 100vw, 598px" /></p>
<h2>What are the benefits of installing SSL on NGINX?</h2>
<p>If you are still wondering about the benefits of installing SSL, you can refer to the following benefits:</p>
<ul>
<li>More trusted by search engines ( Google, Bing..)</li>
<li>Websites with a more secure HTTPS connection</li>
<li>Your website becomes more professional in the eyes of visitors</li>
<li>Minimize network security problems that are extremely unpredictable</li>
</ul>
<h2>Install SSL on NGINX for free with Let&#8217;s Encrypt</h2>
<p>If you have forgotten how to SSH into the server with Putty, you can review <a href="https://kinghostcoupon.com/how-to-connect-linux-vps-server-via-ssh/">this article</a>.</p>
<p><strong>Step 1</strong>: Remove the previous Certbot installation packages</p>
<p><code><span style="color: #ff0000;"><em>yum remove -y certbot</em></span></code></p>
<p><strong>Step 2</strong>: Install Certbot</p>
<p>Currently, the best way to install is through the EPEL repository.</p>
<p>Enable access to the EPEL repository on your server by typing</p>
<p><code><span style="color: #ff0000;"><em>yum install -y epel-release</em></span></code></p>
<p>Use the following command to download the <em>certbot-nginx</em> package:</p>
<p><code><span style="color: #ff0000;"><em>yum install -y certbot-nginx</em></span></code></p>
<p><strong>Step 3</strong>: Open the firewall port</p>
<p>If you are running a firewall, make sure that ports <strong>80</strong> and <strong>443</strong> are open</p>
<p><code><span style="color: #ff0000;"><em>firewall-cmd --zone=public --add-port={80,443}/tcp --permanent</em></span></code></p>
<p><code><span style="color: #ff0000;"><em>firewall-cmd --reload</em></span></code></p>
<p>Type the following command to check</p>
<p><code><span style="color: #ff0000;"><em>firewall-cmd --list-port</em></span></code></p>
<p><strong>Step 4</strong>: Get an SSL certificate</p>
<p>Install the certificate automatically with the following command:</p>
<p><code><span style="color: #ff0000;"><em>certbot --nginx -d example.com -d www.example.com</em></span></code></p>
<p>It will run certbot with the <strong>–nginx</strong> plugin to reconfigure Nginx, use <strong>-d</strong> to determine the valid name of the certificate</p>
<p><strong>Step 5:</strong> Auto-renew</p>
<p>By default, LetsEncrypt certificates are only valid for 90 days, so we encourage you to set up automatic renewal of your SSL certificates.</p>
<p>Try before executing the command (create, renew…) for real, can add the option –dry-run at the end of the command. Such as</p>
<p><code><span style="color: #ff0000;"><em>certbot renew --dry-run</em></span></code></p>
<p>If sure, type the command</p>
<p><code><span style="color: #ff0000;"><em>certbot renew</em></span></code></p>
<p><span style="text-decoration: underline;"><em><strong>Note:</strong></em></span> If you type the command with LetsEncrypt incorrectly, the error is too much, it will block you from working for about 1 hour.</p>
<p>The automatic renewal command applied to Certbot is located in one of the following files and paths:</p>
<p><strong>/etc/crontab</strong></p>
<p><strong>/etc/cron.*/*</strong></p>
<p><strong>systemctl list-timers</strong></p>
<p>Set up cron jobs to auto-renew</p>
<p><code><span style="color: #ff0000;"><em>crontab -e 0 0 15 * * /usr/bin/certbot renew --post-hook "systemctl restart nginx" &gt;&gt; /var/log/certbot-renew.log</em></span></code></p>
<p>This line will run the renewal command at 24 hours on the 15th of each month, then save the log to the file <strong>/var/log/certbot-renew.log</strong> for easy to viewing.</p>
<p><strong>Step 6</strong>: Check Certbot working</p>
<p>Once done, open a browser to access the domain name you just installed SSL, if you see the image below, it has been successfully installed. Congratulation!</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-356" src="https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-enrypt-for-nginx-on-centos-7-successfully.jpg" alt="Install Let's Encrypt for NginX on CenOS 7 Successfully" width="403" height="512" srcset="https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-enrypt-for-nginx-on-centos-7-successfully.jpg 403w, https://kinghostcoupon.com/wp-content/uploads/2021/11/install-lets-enrypt-for-nginx-on-centos-7-successfully-236x300.jpg 236w" sizes="(max-width: 403px) 100vw, 403px" /></p>
<p>Through this article KingHostCoupon has helped you know how to install the free Let&#8217;s Encrypt SSL for Nginx on CentOS 7. If you have any suggestions, you can leave a comment below.</p>
<p>You can find more information in the articles at:</p>
<ul>
<li><a href="http://nginx.org/en/linux_packages.html#RHEL-CentOS">http://nginx.org/en/linux_packages.html#RHEL-CentOS</a></li>
<li><a href="https://www.nginx.com/resources/wiki/start/">https://www.nginx.com/resources/wiki/start/</a></li>
</ul>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/">How to Install Let&#8217;s Encrypt SSL for NginX on CentOS 7</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://kinghostcoupon.com/how-to-install-lets-encrypt-ssl-for-nginx-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
