<?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; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/nginx/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Tue, 03 Aug 2021 10:24:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>NGINX &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Configurate SSL Certificate on Nginx</title>
		<link>https://help.hostry.com/knowledge-base/how-to-configurate-ssl-certificate-on-nginx/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-configurate-ssl-certificate-on-nginx/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 25 Sep 2020 08:10:23 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=2210</guid>

					<description><![CDATA[After successfully installing the SSL certificate&#160;Let’s Encrypt, you need to download the files located in the&#160;“ZIP”&#160;folder. This folder must be unpacked. You can order the New SSL Certificate Let’s Encrypt by chicking in the link: &#160;https://hostry.com/solutions/ssl-for-free/ Then, issuing the certificate you will need to configure Nginx . You must save [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>After successfully installing the SSL certificate<strong>&nbsp;Let’s Encrypt</strong>, you need to download the files located in the&nbsp;<strong>“ZIP”&nbsp;</strong>folder. This folder must be unpacked. You can order the New SSL Certificate Let’s Encrypt by chicking in the link: &nbsp;<a href="https://hostry.com/solutions/ssl-for-free/">https://hostry.com/solutions/ssl-for-free/</a></p>



<figure class="wp-block-image"><img width="1024" height="729" src="https://help.hostry.com/wp-content/uploads/2020/09/MAWN-1024x729-1-1024x729.png" alt="" class="wp-image-2211" srcset="https://help.hostry.com/wp-content/uploads/2020/09/MAWN-1024x729-1.png 1024w, https://help.hostry.com/wp-content/uploads/2020/09/MAWN-1024x729-1-300x214.png 300w, https://help.hostry.com/wp-content/uploads/2020/09/MAWN-1024x729-1-768x547.png 768w, https://help.hostry.com/wp-content/uploads/2020/09/MAWN-1024x729-1-50x36.png 50w, https://help.hostry.com/wp-content/uploads/2020/09/MAWN-1024x729-1-920x655.png 920w, https://help.hostry.com/wp-content/uploads/2020/09/MAWN-1024x729-1-600x427.png 600w, https://help.hostry.com/wp-content/uploads/2020/09/MAWN-1024x729-1-320x228.png 320w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then, issuing the certificate you will need to configure Nginx . You must save the primary, intermediate certificates and private key to a folder on the server</p>



<p>After that, you need to open the nginx configuration file. Usually, it is located in the following way:&nbsp;<strong>/etc/nginx/sites-available.</strong>&nbsp;As a rule, the file should be called&nbsp;<strong>default</strong>.</p>



<p><strong>IMPORTANT!</strong></p>



<p>You need to create two independent configurations for the HTTP and HTTPS protocols. A domain must address both protocols. If you do not register the connection via HTTPS, then your site will not be protected, and if it will not be registered through HTTP, the site will not open.</p>



<p>In the default configuration file you need to make changes. In order for your HTTPS to be present in the configuration file, you need to specify the following:</p>



<pre class="wp-block-code"><code>server {
 listen              443 ssl;
 server_name         www.example.com;
 ssl_certificate     etc/ssl/ctr/ca_bundle
 ssl_certificate_key etc/ssl/crt/private.key

 ...</code></pre>



<p>*In this case,&nbsp;<strong>server_name</strong>&nbsp;is your existing domain (site), where both port 80 and port 443 will be referred to.</p>



<ul><li><strong>Ca_bundle</strong>&nbsp;– Public server certificate. It is sent to each client connecting to the server</li><li><strong>Private.key</strong>&nbsp;– The private key should be stored in a file with limited access (permissions should allow the main nginx process to read this file).</li></ul>



<p>After configuration, you must restart <strong>nginx</strong>:</p>



<pre class="wp-block-code"><code>systemctl restart nginx</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-configurate-ssl-certificate-on-nginx/feed/</wfw:commentRss>
			<slash:comments>460</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Drupal CMS using Nginx on Ubuntu 20.04</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-drupal-cms-using-nginx-on-ubuntu-20-04/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-drupal-cms-using-nginx-on-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 03 Aug 2021 09:39:19 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4090</guid>

					<description><![CDATA[Drupal is a dedicated CMS platform. It is written in PHP and is open source. This CMS is very popular and has many free templates and plugins. In this article, you will learn how to install Drupal 9 with Nginx on Ubuntu 20.04. On the Hostry website, in the services [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://www.drupal.org/">Drupal</a></strong> is a dedicated CMS platform. It is written in PHP and is open source. This CMS is very popular and has many free templates and plugins. In this article, you will learn how to install Drupal 9 with Nginx on <strong>Ubuntu 20.04</strong>.</p>



<blockquote class="wp-block-quote"><p><strong>On the Hostry website, in the services section, you can select a server with LAMP already installed, you will not need to additionally install it.</strong></p></blockquote>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" src="https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-1024x599.png" alt="" class="wp-image-4095" width="831" height="486" srcset="https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-1024x599.png 1024w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-300x175.png 300w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-768x449.png 768w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-50x29.png 50w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-920x538.png 920w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-600x351.png 600w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-320x187.png 320w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11.png 1083w" sizes="(max-width: 831px) 100vw, 831px" /></figure>



<p>Once you have selected this option, you will need to configure a few things to get Drupal up and running.</p>



<h2 id="configuring-nginx-for-this-cms" >Configuring Nginx for this CMS</h2>



<p>The first step is to make changes to your default Nginx server configuration block to use the PHP processor. This is because we will be using the IP address to access the portal:</p>



<pre class="wp-block-code"><code>nano /etc/nginx/sites-available/default</code></pre>



<p>You need to replace the entire contents of the file with the text shown below. Then change the IP address of the example (192.1.3.4) to the IP address of your server.</p>



<pre class="wp-block-code"><code>server {
    listen 80 default_server;
    listen &#91;::]:80 default_server;

    root /var/www/html/drupal;

    index index.html index.htm index.nginx-debian.html index.php;

    server_name 192.1.3.4;

    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location = /favicon.ico { log_not_found off; access_log off; }
    location = /robots.txt { log_not_found off; access_log off; allow all; }
    location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
        expires max;
        log_not_found off;
    }

    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}</code></pre>



<p>Then, after a successful change, you can try testing:</p>



<pre class="wp-block-code"><code>nginx -t</code></pre>



<p><strong>Restart</strong> your <strong>Nginx</strong> so that all changes are successfully updated</p>



<pre class="wp-block-code"><code>systemctl restart nginx</code></pre>



<h2 id="configuring-mariadb-for-drupal" >Configuring MariaDB for Drupal</h2>



<p>First you need to log into <strong>MariaDB</strong></p>



<pre class="wp-block-code"><code>mariadb</code></pre>



<p>Create a database named </p>



<pre class="wp-block-code"><code>CREATE DATABASE drupal;</code></pre>



<p>Then you need to grant privileges to the <strong>drupal</strong> database</p>



<pre class="wp-block-code"><code>GRANT ALL ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'StrongPassword';</code></pre>



<p>Then you need to update for the changes to take effect:</p>



<pre class="wp-block-code"><code>FLUSH PRIVILEGES;</code></pre>



<p>The last step is to log out of <strong>MariaDB</strong></p>



<pre class="wp-block-code"><code>\q</code></pre>



<h2 id="installing-drupal" >Installing Drupal</h2>



<p>If you don&#8217;t have unzip installed yet, you can install it as follows:</p>



<pre class="wp-block-code"><code>apt install unzip</code></pre>



<p>Download the latest version of Drupal from the Drupal download page</p>



<p><a href="https://www.drupal.org/download">https://www.drupal.org/download</a></p>



<p>Extract the compressed file and browse to it.</p>



<pre class="wp-block-code"><code>unzip drupal-9.1.4.zip
cd drupal-9.1.4</code></pre>



<p>Create directory <strong>/var/www/html/drupal</strong></p>



<pre class="wp-block-code"><code>mkdir /var/www/html/drupal</code></pre>



<p>Move all files in the current directory to <strong>/var/www/html/drupal</strong> directory</p>



<pre class="wp-block-code"><code>mv * /var/www/html/drupal</code></pre>



<p>Go to <strong>var/www/html/drupal/sites/default </strong>directory and copy the default.settings.php config file to settings.php</p>



<pre class="wp-block-code"><code>cd /var/www/html/drupal/sites/default
cp default.settings.php settings.php</code></pre>



<p>Set the ownership of the <strong>drupal</strong> directory for the current user and group</p>



<pre class="wp-block-code"><code>chown -R www-data:www-data /var/www/html/drupal/
chmod -R 755 /var/www/html/drupal/</code></pre>



<p>Access the Drupal page through a browser using your IP address. For example:</p>



<p><a href="http://192.1.3.4">http://192.1.3.4</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-drupal-cms-using-nginx-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>393</slash:comments>
		
		
			</item>
		<item>
		<title>How To install Nginx 1.17.4 on Arch Linux</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-nginx-1-17-4-on-arch-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-nginx-1-17-4-on-arch-linux/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 30 Oct 2019 12:43:52 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=847</guid>

					<description><![CDATA[This guide is intended to install nginx on a server running Arch Linux. You can download this system to your ISO disk of a virtual machine. In order to install nginx you will need to enter the following command: To start Nginx after each boot you need to enter: Then [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This guide is intended to install nginx on a <strong><em><a href="https://hostry.com/products/vps/">server</a></em></strong> running Arch Linux. You can download this system to your ISO disk of a virtual machine. <br></p>



<p>In order to install nginx you will need to enter the following command:</p>



<pre class="wp-block-code"><code># pacman -S nginx-mainline</code></pre>



<p>To start Nginx after each boot you need to enter:</p>



<pre class="wp-block-code"><code># systemctl enable --now nginx</code></pre>



<p>Then we check the functionality of Nginx. Visit <strong>http:// YOUR-SERVER-WEB-ADDRESS-OR-IP </strong>and you will see its welcome page. (Run <strong>ip addr</strong> if you need to know, find the IP address.)</p>



<p>Nginx configuration files are located in<strong>/etc/nginx</strong>, and its main file is <strong>nginx.conf</strong>. The string <strong>server.location.root/usr/share/nginx/html; </strong>sets where it will search for web files</p>



<h2 id="virtual-host-configuration" >Virtual host configuration</h2>



<p>On a web server, you can host several domain names at once and serve them with different content and in different directions. You need to create a folder in order to store the settings of your virtual host</p>



<pre class="wp-block-code"><code># mkdir /etc/nginx/sites-enabled</code></pre>



<p>Next, you need to create a configuration file for each virtual host; Example:  <strong>/etc/nginx/sites-enabled/</strong><em>EXAMPLE.COM</em> and fill it with the following configuration:</p>



<pre class="wp-block-code"><code>server {
    listen 80;
    server_name EXAMPLE.COM;

    location / {
        root /usr/share/nginx/YOUR-DOMAIN-NAME.com;
        index  index.html index.htm;
    }
}</code></pre>



<p>At the end of the http block<strong> /etc/nginx/nginx.conf</strong>, add the following line:</p>



<pre class="wp-block-code"><code>include sites-enabled/*;</code></pre>



<p>Then you need to restart Nginx:</p>



<pre class="wp-block-code"><code># systemctl restart nginx</code></pre>



<p>Requests received by Nginx,<strong> EXAMPLE.COM</strong> will be processed by<strong> /usr/share/nginx/EXAMPLE.COM</strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-nginx-1-17-4-on-arch-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Nginx on FreeBSD</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-nginx-on-freebsd/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-nginx-on-freebsd/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 06 Dec 2019 09:19:20 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=984</guid>

					<description><![CDATA[This guide will help you install the Nginx web server for the FreeBSD operating system. First you need to install or upgrade (if already installed) the ports tree using the following command: It usually takes a few minutes to download, and after the download is complete, you will proceed to [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This guide will help you install the Nginx web server for the FreeBSD operating system. First you need to install or upgrade (if already installed) the ports tree using the following command:</p>



<pre class="wp-block-code"><code>portsnap fetch extract</code></pre>



<p>It usually takes a few minutes to download, and after the download is complete, you will proceed to the next step, which will be described. </p>



<h2 id="upgrade-pkg" >Upgrade pkg</h2>



<p>To install these ports that were recently downloaded, you need to update pgk by running the following command:</p>



<pre class="wp-block-code"><code>cd /usr/ports/ports-mgmt/pkg
make reinstall</code></pre>



<p>Then you can already run the command to clean the directory from all temporary files:</p>



<pre class="wp-block-code"><code>make clean</code></pre>



<h2 id="nginx-installation" >Nginx installation</h2>



<p>This command configures, compiles, and installs the Nginx web server</p>



<pre class="wp-block-code"><code>cd /usr/ports/www/nginx
make config-recursive</code></pre>



<p>You will get the configuration pop up, and when you can choose the following: HTTP_GZIP_STATIC, HTTP_SSL, HTTP_DAV_EXT. It may be desirable to include other modules for compiling with Nginx. Then, install Nginx</p>



<pre class="wp-block-code"><code>make install</code></pre>



<p>After the installation is complete, you will need to run the following to clear the directory of any files that will be created by this step:</p>



<pre class="wp-block-code"><code>make clean </code></pre>



<h2 id="configure-%d0%b0utorun" >Configure Аutorun</h2>



<p>To start nginx when your server boots up, edit <strong>/etc/rc.conf. </strong>You can edit this file by running ee  <strong>/etc/rc.conf. </strong>Alternatively you can use <strong>nano</strong>. Nano can be installed by running p<strong><em>kg install nano</em></strong></p>



<p>In <strong>/etc/rc.conf.</strong> you need to add nginx_enable = <strong><em>&#8220;<span style="text-decoration: underline;">YES</span>&#8221; </em></strong>to the end of the file. Once this is done, you can proceed to the next step.</p>



<h3 id="Starting_Nginx" id="starting-nginx" >Starting Nginx</h3>



<p>To start, enter the command:</p>



<pre class="wp-block-code"><code>service nginx start</code></pre>



<p>If the launch was successful, you can see the output, which will be approximately the following:</p>



<pre class="wp-block-code"><code>Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.</code></pre>



<p>To make sure Nginx is configured correctly, you can go to your IP address in a web browser. Go to <strong>http://0.0.0.0</strong> (change the IP accordingly). If successful, you will see the <strong><em>“Welcome to Nginx!” </em></strong>Page</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-nginx-on-freebsd/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install NGINX on Ubuntu 18.04</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-nginx-on-ubuntu-18-04/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-nginx-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 09 Jul 2019 12:53:30 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=66</guid>

					<description><![CDATA[NGINX &#8211; is Web server, which is inherent in open source. It has very powerful features that balance the load of reverse proxy and caching. Initially, it was designed to solve the problem of scaling and concurrency with existing web servers. We will consider the installation of this web server [&#8230;]]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image"><img loading="lazy" width="863" height="502" src="https://help.hostry.com/wp-content/uploads/2019/07/Screenshot-from-2019-07-09-16-22-41.png" alt="" class="wp-image-85" srcset="https://help.hostry.com/wp-content/uploads/2019/07/Screenshot-from-2019-07-09-16-22-41.png 863w, https://help.hostry.com/wp-content/uploads/2019/07/Screenshot-from-2019-07-09-16-22-41-300x175.png 300w, https://help.hostry.com/wp-content/uploads/2019/07/Screenshot-from-2019-07-09-16-22-41-768x447.png 768w, https://help.hostry.com/wp-content/uploads/2019/07/Screenshot-from-2019-07-09-16-22-41-50x29.png 50w, https://help.hostry.com/wp-content/uploads/2019/07/Screenshot-from-2019-07-09-16-22-41-600x349.png 600w, https://help.hostry.com/wp-content/uploads/2019/07/Screenshot-from-2019-07-09-16-22-41-320x186.png 320w" sizes="(max-width: 863px) 100vw, 863px" /></figure>



<p><strong>NGINX</strong> &#8211; is Web server, which is inherent in open source. It has very powerful features that balance the load of reverse proxy and caching. Initially, it was designed to solve the problem of scaling and concurrency with existing web servers. We will consider the installation of this web server on the Ubuntu 18.04 Operating System, which is already included in the Ubuntu repository.</p>



<p></p>



<h2 id="what-you-need-to-do" >What you need to do</h2>



<p></p>



<p>The first is to update the command</p>



<p></p>



<pre class="wp-block-code"><code>apt update</code></pre>



<p>Then install the NGINX web server</p>



<pre class="wp-block-code"><code>apt install nginx</code></pre>



<p>The configuration file will be located will be located in<strong> /etc/nginx/sites-available</strong>, indicated by the references<strong> /etc/nginx/sites-enabled/</strong> Next you need to create a separate source file in the <strong>sites-available</strong> directory for each domain or subdomain and set up the <strong>sites-enabled</strong> link</p>



<p>1. Copy the default configuration file. Replace example.com with your domain name;</p>



<pre class="wp-block-preformatted">/etc/nginx/sites-available/default /etc/nginx/sites-available/<strong>example.com</strong></pre>



<p>2. On the installed web server, disable the default configuration. You must use the following direction: <strong>/etc/nginx/sites-enabled/</strong></p>



<pre class="wp-block-code"><code>unlink /etc/nginx/sites-enabled/default</code></pre>



<p>3. Next, open your site&#8217;s configuration file in a text editor. Replace example.com in the server_name directive with your domain name or IP address of your site. </p>



<ul class="wp-block-gallery columns-1 is-cropped"><li class="blocks-gallery-item"><figure><img loading="lazy" width="665" height="218" src="https://help.hostry.com/wp-content/uploads/2019/07/NGINX.png" alt="" data-id="77" data-link="https://help.hostry.com/?attachment_id=77" class="wp-image-77" srcset="https://help.hostry.com/wp-content/uploads/2019/07/NGINX.png 665w, https://help.hostry.com/wp-content/uploads/2019/07/NGINX-300x98.png 300w, https://help.hostry.com/wp-content/uploads/2019/07/NGINX-50x16.png 50w, https://help.hostry.com/wp-content/uploads/2019/07/NGINX-600x197.png 600w, https://help.hostry.com/wp-content/uploads/2019/07/NGINX-320x105.png 320w" sizes="(max-width: 665px) 100vw, 665px" /></figure></li></ul>



<h2 id="verification-after-installation" >Verification after installation</h2>



<p></p>



<p>Check for errors </p>



<pre class="wp-block-code"><code>sudo nginx -t</code></pre>



<p>Reboot</p>



<pre class="wp-block-code"><code>sudo nginx -s reload</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-nginx-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Protect NGINX web server from Logjam atack on CentOS</title>
		<link>https://help.hostry.com/knowledge-base/how-to-protect-nginx-web-server-from-logjam-atack-on-centos/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-protect-nginx-web-server-from-logjam-atack-on-centos/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 22 Aug 2019 11:01:21 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=567</guid>

					<description><![CDATA[When using a security certificate, many are confident in 100% protection of their web server, but we want to tell that there is a vulnerability in the security certificate. It cannot be called an ordinary vulnerability; rather, it is a small hole in the protocol itself during depreciation of SSL3 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>When using a security certificate, many are confident in 100% protection of their web server, but we want to tell that there is a vulnerability in the security certificate. It cannot be called an ordinary vulnerability; rather, it is a small hole in the protocol itself during depreciation of SSL3 and a phased transition to the use of SSL2.</p>



<p>Today there are many web services that are vulnerable to this Logiam attack. We will try to understand how it can be done to secure your server. We will be talking about servers with the operating system CentOS, version 6 and 7.</p>



<h2 id="specific-actions" >Specific actions </h2>



<p>First, check to see if your server is actually vulnerable by checking Qualys SSL. If your server is vulnerable, there will be a message at the top of the page. After you confirm that the server is vulnerable, enter the NGINX installation directory</p>



<pre class="wp-block-code"><code>cd /etc/nginx/
mkdir keygroup
cd keygroup</code></pre>



<p>Next, you need to run the following command to create a key group</p>



<pre class="wp-block-code"><code>openssl dhparam -out dhsecure.pem 2048</code></pre>



<p>The next step is to add a new key group to your NGINX configuration</p>



<pre class="wp-block-code"><code>cd /etc/nginx/
vi .conf</code></pre>



<p>Next, add<strong><code> ssl_dhparam ... </code></strong>a line of code that is visible below inside each SSL server block and then update all server blocks. Update all blocks of your SSL server accordingly</p>



<pre class="wp-block-code"><code>server {
listen 443 ssl;
...
location / {
...
ssl_dhparam /etc/nginx/keygroup/dhsecure.pem
...
}</code></pre>



<p>Then a reboot of the NGINX web server should follow</p>



<pre class="wp-block-code"><code>service nginx reload</code></pre>



<p>Finally, test the server again with SSL certificate verification</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-protect-nginx-web-server-from-logjam-atack-on-centos/feed/</wfw:commentRss>
			<slash:comments>460</slash:comments>
		
		
			</item>
		<item>
		<title>Opportunities Of Speed ​​Upping NGINX web server on CentOS</title>
		<link>https://help.hostry.com/knowledge-base/opportunities-of-speed-%e2%80%8b%e2%80%8bupping-nginx-web-server-on-centos/</link>
					<comments>https://help.hostry.com/knowledge-base/opportunities-of-speed-%e2%80%8b%e2%80%8bupping-nginx-web-server-on-centos/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 06 Sep 2019 09:16:18 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=646</guid>

					<description><![CDATA[This manual describes how to speed up the operation of this web server, and we are talking about CentOS 6 and 7 versions. It is also suitable for both 32-bit and 64-bit architecture Initial stage The first thing you should start with is backing up the old configuration and all [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This manual describes how to speed up the operation of this web server, and we are talking about CentOS 6 and 7 versions. It is also suitable for both 32-bit and 64-bit architecture</p>



<h2 id="initial-stage" >Initial stage</h2>



<p>The first thing you should start with is <strong>backing up the old configuration and all its data</strong>. Having done this, you can use the following command</p>



<pre class="wp-block-code"><code>cd ~
mkdir nginx
cp -r /etc/nginx ~/nginx</code></pre>



<p>Next is the removal of the Nginx web server itself</p>



<p><code>yum remove nginx </code></p>



<p>Next up is the installation of OpenSSL and all its dependencies</p>



<p><code>yum install zlib-devel pcre-devel openssl libssl-devel make gcc gcc-c++ -y </code></p>



<h2 id="compiling-nginx" >Compiling Nginx</h2>



<p><strong>Important! </strong>You need to use wget in order to be able to get the source code of <em>Nginx</em></p>



<p><code>cd ~ wget https://nginx.org/download/nginx-1.8.0.tar.gz </code></p>



<p>Following is the unpacking of the archive</p>



<p><code>tar -xvf nginx-1.8.0.tar.gz</code></p>



<p>Next step is the assembly and installation of the Nginx web server</p>



<p><code>cd ~/nginx-1.8.0 ./configure --with-http_spdy_module --with-http_ssl_module --with-http_gzip_static_module make install</code></p>



<p>Configuring Nginx as a working service.  For this, it is recommended to use a third-party script from GitHub for the <em><strong>init.d</strong></em> service</p>



<p><code>cd /etc/init.d wget https://gist.githubusercontent.com/sairam/5892520/raw/b8195a71e944d46271c8a49f2717f70bcd04bf1a/nginx chmod +x nginx</code></p>



<h2 id="configuring-nginx" >Configuring Nginx</h2>



<p>At this point you can move the old configuration back to the folder в <strong>/etc/nginx</strong></p>



<p>Web server loading</p>



<p><code>service nginx start </code></p>



<p>Nginx Configuration Editing</p>



<p> <code>vi /etc/nginx/nginx.conf </code></p>



<p>In the<strong> &#8220;http&#8221;</strong> block, you need to add the following:</p>



<p><code>gzip_vary on; </code></p>



<p><code>gzip_proxied any; </code></p>



<p><code>gzip_comp_level 6; </code></p>



<p><code>gzip_buffers 16 8k;  </code></p>



<p><code>gzip_http_version 1.1;   </code></p>



<p><code>gzip_types text/plain text/css text/JavaScript; </code></p>



<p>Exit and save the file by pressing the<strong> ESC</strong> key <strong>:wq,</strong> then typing, then press <strong>Enter</strong></p>



<p></p>



<p>Reload Nginx</p>



<p><code>service nginx reload</code></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/opportunities-of-speed-%e2%80%8b%e2%80%8bupping-nginx-web-server-on-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
