<?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 server Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/nginx-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 07 Oct 2019 18:24:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to install Nginx Server on Windows 10</title>
		<link>https://www.osradar.com/how-to-install-nginx-server-on-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-nginx-server-on-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[Roger Polanco]]></dc:creator>
		<pubDate>Thu, 19 Sep 2019 05:57:53 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[nginx server]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.googez.com/?p=1389</guid>

					<description><![CDATA[<p>Hello! This time I want to talk to you about Nginx. It is an open-source web server and reverse&#160;proxy server. In addition to offering HTTP server capabilities, Nginx can also operate as an&#160;IMAP/POP3&#160;mail proxy server as well as function as a&#160;load balancer&#160;and HTTP&#160;cache&#160;server. Nginx can run on&#160;Linux,&#160;Mac OS X,&#160;Solaris,&#160;AIX, HP-UX, and&#160;BSD&#160;variants. In comparison to Apache, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nginx-server-on-windows-10/">How to install Nginx Server on Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello! This time I want to talk to you about Nginx. It is an open-source web server and reverse&nbsp;proxy server.  In addition to offering HTTP server capabilities, Nginx can also operate as an&nbsp;IMAP/POP3&nbsp;mail proxy server as well as function as a&nbsp;load balancer&nbsp;and HTTP&nbsp;cache&nbsp;server. Nginx can run on&nbsp;Linux,&nbsp;Mac OS X,&nbsp;Solaris,&nbsp;AIX, HP-UX, and&nbsp;BSD&nbsp;variants. In comparison to Apache,  it is built to offer&nbsp;low memory usage&nbsp;and high concurrency.  On the other hand, currently used by more than 30% of web servers. This makes it the second most used web server globally, being used by sites like <a rel="noreferrer noopener" aria-label="wordpress.com (opens in a new tab)" href="https://wordpress.com" target="_blank">wordpress.com</a>, <a rel="noreferrer noopener" aria-label="mail.ru (opens in a new tab)" href="https://mail.ru" target="_blank">mail.ru</a>, <a rel="noreferrer noopener" aria-label="huawei.com (opens in a new tab)" href="https://www.huawei.com" target="_blank">huawei.com</a> and many more. For this reason, we are going to see how to install and configure an Nginx web server in Windows 10.</p>



<h2>Downloading and Installing Nginx</h2>



<p>The first thing we have to do is go to the Nginx website in order to install it. Once there, go to the download section and there select the most recent version. In this case, download <a rel="noreferrer noopener" aria-label="version 1.17.3 (opens in a new tab)" href="http://nginx.org/en/download.html" target="_blank">version 1.17.3</a></p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ng-1024x548.jpg" alt="Download Nginx web server" class="wp-image-1391"/><figcaption>Download Nginx webserver</figcaption></figure>



<p>The downloaded file is compressed. Next, go to the root of the file system, and there decompress the folder.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ng2-1024x548.jpg" alt=" C:\nginx-1.17.3\ " class="wp-image-1392"/><figcaption> <em>C:\nginx-1.17.3\</em> </figcaption></figure>



<p>Inside this folder are all the files needed to configure nginx.  Before starting the server, it is necessary to edit the configuration file. With this in mind, within the program folder, navigate to the <em>conf</em> folder. Once there, select the file <strong>nginx.con</strong>f, and open it with the <strong>notepad</strong>.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ng3-1024x548.jpg" alt="Open nginx.conf file" class="wp-image-1393"/><figcaption>Open nginx.conf file</figcaption></figure>



<h2>Editing the nginx.conf file</h2>



<p>As the name implies, this is the server configuration file. By default, the server loads HTML files. What we will do is allow you to upload images. Besides, we will modify the listening port to avoid conflicts with other services. Please pay attention carefully, because editing the file incorrectly can spoil the functioning of the server. But don&#8217;t worry, here I&#8217;m going to write textually the lines that you must add or modify. Next, I show you the configuration file as it comes, with marks of where it will be edited.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ng4-1024x548.jpg" alt="nginx.conf file open in notepad" class="wp-image-1395"/><figcaption>nginx.conf file open in notepad</figcaption></figure>



<p>The first thing we are going to do is edit the line corresponding to <em>listen</em>. As you saw in the file, the default port is <strong>80</strong>. Change this value and write<strong> 8080</strong>, to avoid having a conflict with any other service. Then navigate to the line<em>: location / </em>and add the following lines:</p>



<pre class="wp-block-code"><code>location /pictures/ {
     root html;
 }</code></pre>



<p>Check how the file looks once the modifications have been made.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ng5-1024x548.jpg" alt="nginx.conf file already edited" class="wp-image-1396"/><figcaption>nginx.conf file already edited</figcaption></figure>



<p>This will allow the server to load the images you place in that folder. Besides, to make this configuration effective follow this path: <strong>C:\nginx-1.17.3\html. </strong>Once there, create the <strong>pictures</strong> folder. Inside the folder place the test image that you want to upload to the server. Remember the name as will be needed later. Then, in the same folder, open the i<strong>ndex.html </strong>file with <strong>notepad</strong>.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ng7-1024x548.jpg" alt="Open index.html file with notepad" class="wp-image-1398"/><figcaption>Open index.html file with notepad</figcaption></figure>



<p>immediately below the line <em>Thank you for using nginx</em>, you have to add the following code:</p>



<pre class="wp-block-code"><code> &lt;img src="/pictures/fuente.jpg" width="500" /> </code></pre>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ddddd-1024x548.jpg" alt="index.html file already edited " class="wp-image-1415"/><figcaption> <em>index.html file already edited</em> </figcaption></figure>



<h2> Configuring Windows Firewall </h2>



<p>Having modified the listening port, we need to create an input rule to enable connections through port 8080. If you want to know everything about Windows Firewall. And as to create rules of entries and exits, I invite you to check our article on apache in <a rel="noreferrer noopener" aria-label="Windows Server  (opens in a new tab)" href="http://www.googez.com/installing-apache-on-windows-server-2019/" target="_blank">Windows Server</a></p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ng9-1024x705.jpg" alt="Windows Firewall with an open port to nginx" class="wp-image-1401"/><figcaption>Windows Firewall with an open port to nginx</figcaption></figure>



<h2>Use nginx server</h2>



<p>To start the nginx server, please open a Command Prompt by typing <em>cmd</em> in the search bar.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ng10.jpg" alt="Open a Command Prompt" class="wp-image-1405"/><figcaption>Open a Command Prompt </figcaption></figure>



<p>Navigate to the server folder, and there type:</p>



<pre class="wp-block-preformatted"> start nginx.exe </pre>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ng11.jpg" alt="Start nginx web server by CMD" class="wp-image-1406"/><figcaption>Start nginx web server by CMD</figcaption></figure>



<p>To check that everything is in order, open the web browser of your choice and open the following address: <em>localhost:8080</em>. The welcome page will appear, along with our test image. This means that we have been able to install and configure the server correctly. </p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/09/ng12-1024x548.jpg" alt="nginx welcome page with a test image" class="wp-image-1407"/><figcaption>nginx welcome page with a test image</figcaption></figure>



<p>To stop the execution of the server just type in the cmd: </p>



<pre class="wp-block-preformatted"> <em>nginx -s stop</em> </pre>



<p>In conclusion, we have learned how to correctly install and configure nginx web server in Windows 10. This powerful alternative to Apáche gives us flexibility when choosing our working server. All right, that&#8217;s it for now. Please check our updates on the <a href="https://t.me/googez" target="_blank" rel="noreferrer noopener" aria-label="Telegram (opens in a new tab)">Telegram</a> channel.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nginx-server-on-windows-10/">How to install Nginx Server on Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-nginx-server-on-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
