<?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>http Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/http/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 19 Jul 2021 22:48:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to enable HTTP/2 on Nginx web server</title>
		<link>https://www.osradar.com/enable-http-2-nginx-web-server/</link>
					<comments>https://www.osradar.com/enable-http-2-nginx-web-server/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 26 Jul 2021 00:46:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31305</guid>

					<description><![CDATA[<p>Hello friends. Learning how to enable HTTP/2 on Nginx is a very good way to improve the security of your website. In addition to this, it also allows for better system loading. As is well known to many HTTP is the protocol that allows the transfer of information over the web. This protocol was improved [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/enable-http-2-nginx-web-server/">How to enable HTTP/2 on Nginx web server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello friends. Learning how to enable HTTP/2 on Nginx is a very good way to improve the security of your website. In addition to this, it also allows for better system loading.</p>



<p class="has-line-data">As is well known to many <strong>HTTP is the protocol that allows the transfer of information over the web</strong>. This protocol was improved and evolved little by little until it reached version 2 which incorporates many advantages in security and performance.</p>



<p class="has-line-data"><strong>HTTP/2 is a binary protocol that retains the same semantics as the HTTP1.X protocol</strong>, which means that all verbs, headers, etc. continue to work unchanged. This means that there is no need to rewrite the way connections are made in the server. With this new version, transfer speed is improved and connection security is added.</p>



<p class="has-line-data">Some advantages of using this protocol instead of HTTP 1.x are:</p>



<ul><li class="has-line-data" data-line-start="8" data-line-end="9">Faster loading speed</li><li class="has-line-data" data-line-start="9" data-line-end="10">Improved web positioning, thanks to the fact that Google values sites with better loading times.</li><li class="has-line-data" data-line-start="10" data-line-end="11">Less bandwidth consumption</li><li class="has-line-data" data-line-start="11" data-line-end="13">Immediate presentation of the results.</li></ul>



<p class="has-line-data">So if you have a website then you should enable HTTP/2 at the server level and you will learn how to do it today.</p>



<h2 class="code-line"><a id="Enabling_HTTP2_on_Nginx_15"></a>Enabling HTTP/2 on Nginx</h2>



<p class="has-line-data">In this case, I have used a clean install of Ubuntu 20.04. So, connect to it, and update it.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p class="has-line-data">Proceed now, to install Nginx from the official Ubuntu repositories.</p>



<pre class="wp-block-preformatted">sudo apt install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 nginx-common nginx-core
Suggested packages:
  libgd-tools fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 nginx nginx-common nginx-core
0 upgraded, 23 newly installed, 0 to remove and 3 not upgraded.
Need to get 3,334 kB of archives.
After this operation, 11.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">At the end of the installation, it is convenient to check the status of the service.</p>



<pre class="wp-block-preformatted">sudo systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2021-07-19 18:30:45 CEST; 58s ago
       Docs: man:nginx(8)
   Main PID: 1649 (nginx)
      Tasks: 2 (limit: 2286)
     Memory: 4.1M
     CGroup: /system.slice/nginx.service
             ├─1649 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
             └─1650 nginx: worker process

Jul 19 18:30:45 osradar systemd[1]: Starting A high performance web server and a reverse proxy server...
Jul 19 18:30:45 osradar systemd[1]: Started A high performance web server and a reverse proxy server.</pre>



<p class="has-line-data">Now, it is necessary to obtain a new TLS certificate to enable HTTPS which is a previous step. This can be done quickly and easily using <code>certbot</code> and its nginx plugin.</p>



<p class="has-line-data">To install them, run this command</p>



<pre class="wp-block-preformatted">sudo apt install certbot python3-certbot-nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  python3-acme python3-certbot python3-configargparse python3-future python3-josepy python3-mock python3-openssl python3-parsedatetime python3-pbr python3-pyparsing
  python3-requests-toolbelt python3-rfc3339 python3-tz python3-zope.component python3-zope.event python3-zope.hookable python3-zope.interface
Suggested packages:
  python3-certbot-apache python-certbot-doc python-acme-doc python-certbot-nginx-doc python-future-doc python-mock-doc python-openssl-doc python3-openssl-dbg
  python-pyparsing-doc
Recommended packages:
  python3-icu
The following NEW packages will be installed:
  certbot python3-acme python3-certbot python3-certbot-nginx python3-configargparse python3-future python3-josepy python3-mock python3-openssl python3-parsedatetime
  python3-pbr python3-pyparsing python3-requests-toolbelt python3-rfc3339 python3-tz python3-zope.component python3-zope.event python3-zope.hookable
  python3-zope.interface
0 upgraded, 19 newly installed, 0 to remove and 3 not upgraded.
Need to get 1,143 kB of archives.
After this operation, 6,405 kB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">Get the certificate for Nginx and your domain like this</p>



<pre class="wp-block-preformatted">sudo certbot --nginx -d [your-domain] -d www.[your-domain]</pre>



<p class="has-line-data">Now to complete the HTTP/2 enablement you need to modify the ServerBlock file of your website.</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/sites-available/your-domain.conf </pre>



<p>And add the following lines before the `http` section </p>



<pre class="wp-block-preformatted">listen [::]:443 ssl http2 ipv6only=on;
listen 443 ssl http2;
ssl_protocols TLSv1.2;</pre>



<p class="has-line-data">In it, we indicate which is the protocol listening order that Nginx will use for the site configuration.</p>



<p class="has-line-data">For more information on how to create a server block for a website, we have <a href="https://www.osradar.com/create-nginx-server-block-centos-rhel-oracle-linux-8/" target="_blank" rel="noreferrer noopener">this post</a> and the official <a href="http://nginx.org/en/docs/" target="_blank" rel="noreferrer noopener">Nginx documentation</a>.</p>



<p class="has-line-data">Save your changes and close the text editor.</p>



<p class="has-line-data">In the end, restart Nginx to apply the changes.</p>



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



<p class="has-line-data">And with this, HTTP/2 on Nginx will be enabled.</p>



<p class="has-line-data">So, enjoy it.</p>



<h2 class="code-line"><a id="Conclusion_62"></a>Conclusion</h2>



<p class="has-line-data">In this post, you have learned something fundamental to improve the loading and speed of your web pages. This protocol change is an advantage that you can use to your advantage. As you can see the process is not strange at all and it is usable.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/enable-http-2-nginx-web-server/">How to enable HTTP/2 on Nginx web server</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/enable-http-2-nginx-web-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Redirect all traffic from HTTP to HTTPS using Nginx</title>
		<link>https://www.osradar.com/redirect-all-traffic-from-http-to-https-using-nginx/</link>
					<comments>https://www.osradar.com/redirect-all-traffic-from-http-to-https-using-nginx/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 07 Sep 2020 03:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[http]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=23405</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to redirect HTTP traffic to HTTPS using the Nginx web server. Previously we did it with Apache but now it&#8217;s the turn of the great competitor Nginx. On a web server, it is always convenient to have access via HTTPS to ensure that all communication is [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/redirect-all-traffic-from-http-to-https-using-nginx/">Redirect all traffic from HTTP to HTTPS using Nginx</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, friends. In this post, you will learn how to redirect HTTP traffic to HTTPS using the Nginx web server. Previously <a href="https://www.osradar.com/redirecting-all-traffic-from-http-to-https-with-apache/" target="_blank" rel="noreferrer noopener">we did it with Apache</a> but now it&#8217;s the turn of the great competitor Nginx.</p>



<p>On a web server, it is always convenient to have access via HTTPS to ensure that all communication is secure. Except for a very few cases on private servers without internet access is that you can afford not to have HTTPS.</p>



<p>So, if a user explicitly writes <code>http://</code> what we will do is redirect him to <code>https://</code> with this we will avoid security leaks.</p>



<h2>Redirect all traffic from HTTP to HTTPS for one single site</h2>



<p>Each site we have in Nginx will have its configuration. So it&#8217;s possible to redirect all traffic from HTTP to HTTPS in a single site.</p>



<p>To do this, access the site&#8217;s configuration file and edit it. Usually, the path is <code>/etc/nginx/sites-available/</code> and it will be there with the name you have given it. For example:</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/sites-available/site_conf_file</pre>



<p>And within the configuration, it is necessary to add</p>



<pre class="wp-block-preformatted">server {<br>listen 80;<br>server_name yourdomain.com www.yourdomain.com;<br>return 301 https://your domain.com$request_uri;<br>}</pre>



<p>This is not enough because now we have to add the configuration of the SSL certificate that secures the HTTPS connection.</p>



<p>Below add the following</p>



<pre class="wp-block-preformatted">server {<br>listen 443 ssl;<br>server_name yourdomain.com;<br>ssl_certificate yourdomain.com.crt;<br>ssl_certificate_key yourdomain.com.key;<br>}</pre>



<p>Remember that you have to change <code>yourdomain.com</code> for yours. In addition to having SSL configured.</p>



<p>A good practice is also to redirect HTTPS connections that start with <strong>www</strong>. To do this, add the following</p>



<pre class="wp-block-preformatted">server {<br>listen 443 ssl;<br>server_name www.yourdomain.com;<br>return 301 https://yourdomain.com$request_uri;<br>}</pre>



<p>Save the file and exit the editor.</p>



<p>To apply the changes, simply restart the Nginx service with <code>systemctl</code>.</p>



<pre class="wp-block-preformatted">sudo systemctl reload nginx</pre>



<p>And it should already work on your site.</p>



<h2>Redirecting for all sites</h2>



<p>Although each site has a particular configuration, many times it is convenient to do this configuration globally. So that it affects all the sites hosted on the server.</p>



<p>To do this, you only need to add this in the main configuration file of Nginx.</p>



<pre class="wp-block-preformatted">server {<br>listen 80 default_server;<br>listen [::]:80 default_server;<br>server_name _;<br>return 301 https://$host$request_uri;<br>}</pre>



<p>Then save your changes and exit the editor.</p>



<p>Again, restart Nginx.</p>



<pre id="block-db9ab6e9-8f03-48c5-b789-af9d2d52c19f" class="wp-block-preformatted">sudo systemctl reload nginx</pre>



<p>That is it.</p>



<h2>Conclusion</h2>



<p>Redirecting all traffic to HTTPS using Nginx may be thought to be difficult but here we have shown you that it is not. Definitely a web server that has an outlet to the Internet has to always try to handle these connections.</p>



<p>So, share this post and join<a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener"> our Telegram Channel.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/redirect-all-traffic-from-http-to-https-using-nginx/">Redirect all traffic from HTTP to HTTPS using Nginx</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/redirect-all-traffic-from-http-to-https-using-nginx/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install cURL in Windows.</title>
		<link>https://www.osradar.com/how-to-install-curl-in-windows/</link>
					<comments>https://www.osradar.com/how-to-install-curl-in-windows/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Fri, 29 Nov 2019 11:36:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16051</guid>

					<description><![CDATA[<p>Hello, how are you? Today we are going to talk about cURL. This is a library of functions to connect to servers to work with them. The work is done in URL format. That is to say, it is used to perform actions on files in Internet URLs, supporting the most common protocols, such as [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-curl-in-windows/">How to install cURL in Windows.</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, how are you? Today we are going to talk about cURL. This is a library of functions to connect to servers to work with them. The work is done in URL format. That is to say, it is used to perform actions on files in Internet URLs, supporting the most common protocols, such as http, ftp, https, etc. Moreover, is a software project consisting of a library (libcurl) and a command interpreter (curl) oriented file transfer. Its primary use is to automate unsupervised file transfers or sequences of operations. In addition, it integrates with PHP, so its libraries can also be used from PHP scripts. The only requirement is that PHP must be installed with cURL support. Consequently, in this post, we are going to see how to install cURL in Windows.</p>



<h2>Download cURL for Windows.</h2>



<p>The first thing we have to do is go to this <a rel="noreferrer noopener" aria-label="website (opens in a new tab)" href="https://winampplugins.co.uk/curl/" target="_blank">website</a> and download the corresponding version. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/curl.jpg" alt="Download the version corresponding to the computer architecture." class="wp-image-16053" srcset="https://www.osradar.com/wp-content/uploads/2019/11/curl.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/curl-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/curl-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/curl-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/curl-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/curl-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Download the version corresponding to the computer architecture.</figcaption></figure>



<p>Then unzip it at the root of the Windows installation. Also, for ease of use assign a simple name to the folder. In my case, I chose <em>curl</em>:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/curl2.jpg" alt="Unzip the folder at the root of the Windows installation" class="wp-image-16054" srcset="https://www.osradar.com/wp-content/uploads/2019/11/curl2.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/curl2-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/curl2-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/curl2-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/curl2-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/curl2-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Unzip the folder at the root of the Windows installation</figcaption></figure>



<h2>Testing the installation.</h2>



<p>The first thing you have to do is open a Command Prompt. With this intention press the Win+R combination and run cmd. Then navigate to the folder you unzipped by typing the following commands:</p>



<pre class="wp-block-preformatted">cd..
cd..
cd curl</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="979" height="512" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/curl7.jpg" alt="Entering the curl folder." class="wp-image-16055" srcset="https://www.osradar.com/wp-content/uploads/2019/11/curl7.jpg 979w, https://www.osradar.com/wp-content/uploads/2019/11/curl7-300x157.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/curl7-768x402.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/curl7-696x364.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/curl7-803x420.jpg 803w" sizes="(max-width: 979px) 100vw, 979px" /><figcaption>Entering the curl folder.</figcaption></figure>



<p>To test the cURL installation please run the following command:</p>



<pre class="wp-block-preformatted">curl -V</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/curl3.jpg" alt="Checking the cURL version" class="wp-image-16056" srcset="https://www.osradar.com/wp-content/uploads/2019/11/curl3.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/curl3-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/curl3-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/curl3-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/curl3-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/curl3-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Checking the cURL version</figcaption></figure>



<p>Now let&#8217;s try a popular site, like google. With this in mind, please run the following command:</p>



<pre class="wp-block-preformatted">curl https://www.google.com</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="979" height="512" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/curl4.jpg" alt="Testing cURL on google.com" class="wp-image-16057" srcset="https://www.osradar.com/wp-content/uploads/2019/11/curl4.jpg 979w, https://www.osradar.com/wp-content/uploads/2019/11/curl4-300x157.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/curl4-768x402.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/curl4-696x364.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/curl4-803x420.jpg 803w" sizes="(max-width: 979px) 100vw, 979px" /><figcaption>Testing cURL on google.com</figcaption></figure>



<h2>Adding the environment variable.</h2>



<p>To be able to run curl, it is necessary to go to the program directory and from there run the commands. If we want to avoid this, it is necessary to edit the environment variables. In addition, add a new variable to the PATH environment. If you want to know how to do it, please see <a rel="noreferrer noopener" aria-label="here (opens in a new tab)" href="https://www.osradar.com/how-to-install-wget-in-windows-10/" target="_blank">here</a>. In this case, I only show you that the path you have to add is <strong>C:\curl</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="768" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/curl5.jpg" alt="Adding the environment variable." class="wp-image-16059" srcset="https://www.osradar.com/wp-content/uploads/2019/11/curl5.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/curl5-300x225.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/curl5-768x576.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/curl5-80x60.jpg 80w, https://www.osradar.com/wp-content/uploads/2019/11/curl5-265x198.jpg 265w, https://www.osradar.com/wp-content/uploads/2019/11/curl5-696x522.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/curl5-560x420.jpg 560w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Adding the environment variable.</figcaption></figure>



<p>From now on we can run cURL from any Command Prompt. It is no longer necessary to scroll to the installation address.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="979" height="512" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/curl6.jpg" alt="Running cURL from a CMD " class="wp-image-16062" srcset="https://www.osradar.com/wp-content/uploads/2019/11/curl6.jpg 979w, https://www.osradar.com/wp-content/uploads/2019/11/curl6-300x157.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/curl6-768x402.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/curl6-696x364.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/curl6-803x420.jpg 803w" sizes="(max-width: 979px) 100vw, 979px" /><figcaption>Running cURL from a CMD </figcaption></figure>



<p> In conclusion, we have seen how to install cURL on Windows. From now on you can use it to test HTTP requests. Also, as a programmer it is possible to use all the advantages it offers. All right, that&#8217;s it for now. Greetings!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-curl-in-windows/">How to install cURL in Windows.</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-curl-in-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Wget in Windows 10</title>
		<link>https://www.osradar.com/how-to-install-wget-in-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-wget-in-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Wed, 16 Oct 2019 00:44:06 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[wget]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[wls]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14661</guid>

					<description><![CDATA[<p>Hello, how are you? This time we&#8217;re going to talk about Wget. It is a tool created by the GNU Project. Its main purpose is to get content and files from different web servers. Besides, it supports downloads via FTP, SFTP, HTTP, and HTTPS. Its features include recursive download, conversion of links for offline viewing [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-wget-in-windows-10/">How to install Wget in 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, how are you? This time we&#8217;re going to talk about <a rel="noreferrer noopener" aria-label="Wget (opens in a new tab)" href="https://www.gnu.org/software/wget/faq.html#What_is_Wget.3F" target="_blank">Wget</a>. It is a tool created by the GNU Project. Its main purpose is to get content and files from different web servers.  Besides, it supports downloads via FTP, SFTP, HTTP, and HTTPS. Its features include recursive download, conversion of links for offline viewing of local HTML, and support for proxies. It is a widely known program in Linux environments, since its appearance in 1996. However, it can also be ported to Windows, where its use is not well known. For that reason, we will see how to install and use Wget in Windows 10.</p>



<h2>Installing Wget in Windows 10</h2>



<p>Wget is a free tool and relatively simple to install in a Linux environment. Just type the appropriate commands to each distribution, and you&#8217;re done. However, when it comes to Windows, the situation changes. There are many installers and options that end up with installation errors.  However, we&#8217;ve got this version that works properly. Go to this link and download version <a href="https://sourceforge.net/projects/gnuwin32/files/wget/" target="_blank" rel="noreferrer noopener" aria-label="1.11.4-1 (opens in a new tab)">1.11.4-1</a></p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget-1-1024x728.jpg" alt="Download 1.11.4-1 version" class="wp-image-14681" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget-1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/10/wget-1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/wget-1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/10/wget-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/10/wget-1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/10/wget-1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption> <em>Download 1.11.4-1 version</em> </figcaption></figure>



<p>Next, we proceed to run the installer. Just double click and the wizard will start, press next to continue:</p>



<figure class="wp-block-image"><img loading="lazy" width="502" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget2-1.jpg" alt="Wget setup wizard" class="wp-image-14683" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget2-1.jpg 502w, https://www.osradar.com/wp-content/uploads/2019/10/wget2-1-300x232.jpg 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>Wget setup wizard</figcaption></figure>



<p>Then accept the license terms, and click Next to continue the installation.</p>



<figure class="wp-block-image"><img loading="lazy" width="502" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget3.jpg" alt="Accept the agreement of license" class="wp-image-14685" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget3.jpg 502w, https://www.osradar.com/wp-content/uploads/2019/10/wget3-300x232.jpg 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>Accept the agreement of license</figcaption></figure>



<p>Select the folder where the program will be installed. Click next to continue the installation.</p>



<figure class="wp-block-image"><img loading="lazy" width="502" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget4-2.jpg" alt="Select destination location" class="wp-image-14691" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget4-2.jpg 502w, https://www.osradar.com/wp-content/uploads/2019/10/wget4-2-300x232.jpg 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>Select destination location</figcaption></figure>



<p>Next, select the components to install. To ensure proper operation, check both boxes and press Next to continue the installation.</p>



<figure class="wp-block-image"><img loading="lazy" width="502" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget5-1.jpg" alt="Select the components to install" class="wp-image-14693" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget5-1.jpg 502w, https://www.osradar.com/wp-content/uploads/2019/10/wget5-1-300x232.jpg 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>Select the components to install</figcaption></figure>



<p>Next, you can create direct access to the application and its respective location</p>



<figure class="wp-block-image"><img loading="lazy" width="502" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget6.jpg" alt="Adding a shortcut folder" class="wp-image-14695" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget6.jpg 502w, https://www.osradar.com/wp-content/uploads/2019/10/wget6-300x232.jpg 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>Adding a shortcut folder</figcaption></figure>



<p>You can install additional icons. Click Next to continue</p>



<figure class="wp-block-image"><img loading="lazy" width="502" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget7.jpg" alt="Select additional tasks" class="wp-image-14696" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget7.jpg 502w, https://www.osradar.com/wp-content/uploads/2019/10/wget7-300x232.jpg 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>Select additional tasks</figcaption></figure>



<p>Verify the installation options and press Install to finish the process.</p>



<figure class="wp-block-image"><img loading="lazy" width="502" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget8.jpg" alt="Ready to install" class="wp-image-14697" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget8.jpg 502w, https://www.osradar.com/wp-content/uploads/2019/10/wget8-300x232.jpg 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>Ready to install</figcaption></figure>



<p>Once the installation is finished, we will see the following screen.</p>



<figure class="wp-block-image"><img loading="lazy" width="502" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget8-1.jpg" alt="successful installation" class="wp-image-14699" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget8-1.jpg 502w, https://www.osradar.com/wp-content/uploads/2019/10/wget8-1-300x232.jpg 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption>successful installation</figcaption></figure>



<h2>Using Wget in Windows 10</h2>



<p>Please note that Wget does not have a graphical interface, so you will have to use it through command in the CMD. To check that the program is actually installed, please go to the installation directory. Depending on the installation options selected, it should be as follows:</p>



<pre class="wp-block-preformatted">C:\Program Files (x86)\GnuWin32\bin</pre>



<p>What we need to do is open a command prompt. With this intention, press the Win+R combination and type CMD</p>



<figure class="wp-block-image"><img loading="lazy" width="402" height="208" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget9.jpg" alt="" class="wp-image-14701" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget9.jpg 402w, https://www.osradar.com/wp-content/uploads/2019/10/wget9-300x155.jpg 300w" sizes="(max-width: 402px) 100vw, 402px" /><figcaption>Run a CMD</figcaption></figure>



<p>Once there, use the CD command to navigate to the file location mentioned above. Then type Wget to use the program.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget10-1024x728.jpg" alt="Wget in action" class="wp-image-14702" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget10.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/10/wget10-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/wget10-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/10/wget10-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/10/wget10-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/10/wget10-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Wget in action</figcaption></figure>



<h2>Add environment variable</h2>



<p>We have correctly installed Wget. However, to be able to use it we always have to navigate to the installation folder of the program. This is cumbersome, so if we want to use Wget from any directory, we need to add an environment variable. With this in mind, please follow this path: Control Panel>System and Security>System>Advanced system settings</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget11-1024x728.jpg" alt="Enter in Advanced system settings" class="wp-image-14703" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget11.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/10/wget11-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/wget11-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/10/wget11-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/10/wget11-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/10/wget11-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Enter in Advanced system settings</figcaption></figure>



<p>On the next screen, choose <strong>Environment Variables</strong></p>



<figure class="wp-block-image"><img loading="lazy" width="412" height="468" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget12.jpg" alt="Select Environment Variables" class="wp-image-14706" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget12.jpg 412w, https://www.osradar.com/wp-content/uploads/2019/10/wget12-264x300.jpg 264w, https://www.osradar.com/wp-content/uploads/2019/10/wget12-370x420.jpg 370w" sizes="(max-width: 412px) 100vw, 412px" /><figcaption>Select Environment Variables</figcaption></figure>



<p>Next, we are going to create a new environment variable. With that intention, please select Path and press Edit.</p>



<figure class="wp-block-image"><img loading="lazy" width="618" height="585" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget13-1.jpg" alt="Creating a new Environment Variable" class="wp-image-14709" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget13-1.jpg 618w, https://www.osradar.com/wp-content/uploads/2019/10/wget13-1-300x284.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/wget13-1-444x420.jpg 444w" sizes="(max-width: 618px) 100vw, 618px" /><figcaption>Creating a new Environment Variable</figcaption></figure>



<p>On the next screen first select New, then Browse. You must select the address where the program is installed.</p>



<figure class="wp-block-image"><img loading="lazy" width="527" height="501" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget14.jpg" alt="Setting the new path" class="wp-image-14711" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget14.jpg 527w, https://www.osradar.com/wp-content/uploads/2019/10/wget14-300x285.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/wget14-442x420.jpg 442w" sizes="(max-width: 527px) 100vw, 527px" /><figcaption>Setting the new path</figcaption></figure>



<p>Press ok in each of the open windows, and we can run Wget every time we open a Command Prompt. It doesn&#8217;t matter which directory we&#8217;re in. Let&#8217;s test the Wget command, downloading its executable for windows 10. With this intention, we enter this command in the CMD</p>



<pre class="wp-block-preformatted">wget https://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/wget-1.11.4-1-setup.exe/download</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget15-1024x728.jpg" alt="Wget downloading a file" class="wp-image-14712" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget15.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/10/wget15-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/wget15-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/10/wget15-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/10/wget15-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/10/wget15-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Wget downloading a file</figcaption></figure>



<h2>Using Wget in Windows Subsystem for Linux</h2>



<p>We have already seen how to use <a href="https://www.osradar.com/how-to-install-and-use-bash-in-windows-10/" target="_blank" rel="noreferrer noopener" aria-label="bash in windows 10 (opens in a new tab)">bash in windows 10</a>. Through WSL we can also use Wget natively. To do this, we&#8217;ll open ubuntu and run the following command:</p>



<pre class="wp-block-preformatted"> sudo apt-get install wget </pre>



<p>Enter your password, and wait while the program is installed. Now we are ready to use wget in Windows 10.</p>



<figure class="wp-block-image"><img loading="lazy" width="979" height="512" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/wget16.jpg" alt="Wget en WSL" class="wp-image-14713" srcset="https://www.osradar.com/wp-content/uploads/2019/10/wget16.jpg 979w, https://www.osradar.com/wp-content/uploads/2019/10/wget16-300x157.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/wget16-768x402.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/10/wget16-696x364.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/10/wget16-803x420.jpg 803w" sizes="(max-width: 979px) 100vw, 979px" /><figcaption>Wget en WSL</figcaption></figure>



<p>Finally, we have seen how to install Wget in Windows 10. We can do it natively or using the Windows Subsystem for Linux. Both methods are valid for using this powerful download tool. Not only will we have access to files, but also to complete pages so that they can run offline. All right, that&#8217;s it for now, if you have any questions, don&#8217;t hesitate to ask. We are here to serve! until next time!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-wget-in-windows-10/">How to install Wget in 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-wget-in-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Caddy on CentOS 7?</title>
		<link>https://www.osradar.com/how-to-install-caddy-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-caddy-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 27 Sep 2018 09:53:26 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[caddy]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6040</guid>

					<description><![CDATA[<p>The Internet is an essential part of our lives. There are many websites for anything from working to wasting our time; however, there is a fundamental component of websites and they are the HTTP web servers, such Caddy. A web server is in charge of managing web pages and sending them through the network to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-caddy-on-centos-7/">How to install Caddy on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The Internet is an essential part of our lives. There are many websites for anything from working to wasting our time; however, there is a fundamental component of websites and they are the HTTP web servers, such <strong>Caddy</strong>.</p>
<p>A web server is in charge of managing web pages and sending them through the network to those who require it and have the permissions for those pages. In other words, it is nothing more than a software with processes waiting for a user connected to it to request the content to store, when a request arrives, the web server, generates its own processes to deliver the content through HTTP protocol. We also have even spoken <a href="https://www.osradar.com/how-to-configure-an-apache-virtual-host-on-debian-9/" target="_blank" rel="noopener">on this site</a> of them on other occasions.</p>
<h2>Here is Caddy</h2>
<p>Caddy is the HTTP/2 web server with automatic HTTPS. That&#8217;s the description they give us on their <a href="https://caddyserver.com/" target="_blank" rel="noopener">website</a>. It is a lightweight, commercially supported web server that can acquire and renew SSL/TLS certificates automatically using Let&#8217;s Encrypt.</p>
<p>Among its most outstanding features are:</p>
<ul>
<li>Easy configuration with the Caddyfile.</li>
<li>Automatic HTTPS on by default (via Let&#8217;s Encrypt)</li>
<li>HTTP/2 by default. In other words, this is important to maintain the security of our websites.</li>
<li>Virtual hosting so multiple sites just work.</li>
<li>Experimental QUIC support for cutting-edge transmissions.</li>
<li>TLS session ticket key rotation for more secure connections.</li>
<li>Extensible with plugins because a convenient web server is a helpful one.</li>
<li>Runs anywhere with no external dependencies.</li>
</ul>
<p>As can be seen, it is an interesting and practical web server. It comes to add to the list that already conform the veterans apache and nginx.</p>
<h2>Install Caddy on CentOS 7</h2>
<p>Installing Caddy on Linux is simple and we can &#8220;build&#8221; our program through its <a href="https://caddyserver.com/download" target="_blank" rel="noopener">download</a> section.</p>
<p><figure id="attachment_6055" aria-describedby="caption-attachment-6055" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6055" src="https://www.osradar.com/wp-content/uploads/2018/09/1-18.png" alt="1.- Caddy download section" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/09/1-18.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/1-18-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/1-18-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/1-18-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/1-18-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/1-18-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/1-18-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6055" class="wp-caption-text">1.- Caddy download section</figcaption></figure></p>
<p>Another alternative is to use curl to download it to further simplify the process. In this article I will do it this way.</p>
<p>First, create the a folder called &#8220;caddy&#8221;.</p>
<pre class="">:~# mkadi -p caddy</pre>
<p><figure id="attachment_6056" aria-describedby="caption-attachment-6056" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6056" src="https://www.osradar.com/wp-content/uploads/2018/09/2-17.png" alt="2.- Creating the folder" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/2-17.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/2-17-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/2-17-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/2-17-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/2-17-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/2-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/2-17-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6056" class="wp-caption-text">2.- Creating the folder</figcaption></figure></p>
<p>Then, change the current working directory and finally run <code>curl</code> to download it.</p>
<pre class="">:~# cd caddy
:~# curl https://getcaddy.com | bash -s personal</pre>
<p><figure id="attachment_6057" aria-describedby="caption-attachment-6057" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6057" src="https://www.osradar.com/wp-content/uploads/2018/09/3-17.png" alt="3.- Downloading Caddy using Curl" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/3-17.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/3-17-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/3-17-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/3-17-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/3-17-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/3-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/3-17-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6057" class="wp-caption-text">3.- Downloading Caddy using Curl</figcaption></figure></p>
<p>Note: If you don&#8217;t have curl installed, you can do it by running on a terminal <code>yum install curl</code> as root user.</p>
<p>Next you have to create an html file in the caddy directory.</p>
<pre class="">:~# nano index.html</pre>
<p>For example, something like this.</p>
<p><figure id="attachment_6059" aria-describedby="caption-attachment-6059" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6059" src="https://www.osradar.com/wp-content/uploads/2018/09/4-22.png" alt="4.- Making a sample .html file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/4-22.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/4-22-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/4-22-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/4-22-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/4-22-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/4-22-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/4-22-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6059" class="wp-caption-text">4.- Making a sample .html file</figcaption></figure></p>
<p>Save and close the file.</p>
<p><figure id="attachment_6060" aria-describedby="caption-attachment-6060" style="width: 1357px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6060" src="https://www.osradar.com/wp-content/uploads/2018/09/5-18.png" alt="5.- Showing index file " width="1357" height="336" srcset="https://www.osradar.com/wp-content/uploads/2018/09/5-18.png 1357w, https://www.osradar.com/wp-content/uploads/2018/09/5-18-300x74.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/5-18-768x190.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/5-18-1024x254.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/5-18-696x172.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/5-18-1068x264.png 1068w" sizes="(max-width: 1357px) 100vw, 1357px" /><figcaption id="caption-attachment-6060" class="wp-caption-text">5.- Showing index file</figcaption></figure></p>
<p>By default Caddy uses port 2015. If you want to kill the process to stop its execution, type the following.</p>
<pre class="">:~# pkill caddy</pre>
<h2>Conclusion</h2>
<p>Caddy is emerging as a great option to keep in mind, however, it seems that he still has some way to go in the business field.</p>
<p>And what do you think? did you like the program? do you use it? we want to know what you think</p>
<p>Please spread this article through your social networks.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-caddy-on-centos-7/">How to install Caddy on CentOS 7?</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-caddy-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
