<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Servidors_Web._Apache._Instal.laci%C3%B3_i_Configuraci%C3%B3_I</id>
	<title>Servidors Web. Apache. Instal.lació i Configuració I - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Servidors_Web._Apache._Instal.laci%C3%B3_i_Configuraci%C3%B3_I"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Servidors_Web._Apache._Instal.laci%C3%B3_i_Configuraci%C3%B3_I&amp;action=history"/>
	<updated>2026-08-30T06:40:22Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Servidors_Web._Apache._Instal.laci%C3%B3_i_Configuraci%C3%B3_I&amp;diff=297001&amp;oldid=prev</id>
		<title>Joan a 23:51, 17 oct 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Servidors_Web._Apache._Instal.laci%C3%B3_i_Configuraci%C3%B3_I&amp;diff=297001&amp;oldid=prev"/>
		<updated>2020-10-17T23:51:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 23:51, 17 oct 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l374&quot; &gt;Línia 374:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 374:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;et redirecciona a:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;et redirecciona a:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*http://localhost/IAW2&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*http://localhost/IAW2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Forbidden. You don't have permission to access this resource==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Aquest és un problema molt típic, amb el qual us podeu trobar. Està bastant ben explicat aquí:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*https://www.tecmint.com/forbidden-you-dont-have-permission-to-access-on-this-server-error/&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pot ser un tema de permisos dels directoris, i també de les directives.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Configurar el Apache per utilitzar el port 8080==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Configurar el Apache per utilitzar el port 8080==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l453&quot; &gt;Línia 453:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 458:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;i ja tenim el recurs ''http://localhost/iaw'' protegit amb login i password&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;i ja tenim el recurs ''http://localhost/iaw'' protegit amb login i password&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''NOTA''': per tal de què funcioni és important la directiva '''AllowOverride all''' en la configuració del nostre ''site'' en el fitxer ''default''. Si tenim '''AllowOverride None''' no funciona.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''NOTA''': per tal de què funcioni és important la directiva '''AllowOverride all''' en la configuració del nostre ''site'' en el fitxer ''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;000-&lt;/ins&gt;default''. Si tenim '''AllowOverride None''' no funciona.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Alias /IAW &amp;quot;/home/joan/IAW/html&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Alias /IAW &amp;quot;/home/joan/IAW/html&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Servidors_Web._Apache._Instal.laci%C3%B3_i_Configuraci%C3%B3_I&amp;diff=279910&amp;oldid=prev</id>
		<title>Joan: /* Altres apunts */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Servidors_Web._Apache._Instal.laci%C3%B3_i_Configuraci%C3%B3_I&amp;diff=279910&amp;oldid=prev"/>
		<updated>2020-10-01T14:40:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Altres apunts&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 14:40, 1 oct 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Línia 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Comparativa servidors web: https://trends.builtwith.com/web%20server#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Comparativa servidors web: https://trends.builtwith.com/web%20server#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*'''nginx''': https://es.wikipedia.org/wiki/Nginx&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*'''nginx''': https://es.wikipedia.org/wiki/Nginx&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*Imatge sobre l'evolució històrica dels servidors web (actulitzat 2018): https://news.netcraft.com/images/2019/03/wpid-wss-active-share1.png&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Conclusió: Apache baixa, Nginx puja&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Instal.lació de l'Apache=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Instal.lació de l'Apache=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l261&quot; &gt;Línia 261:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 263:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Editem el fitxer ''/etc/apache2/sites-available/000-default.conf'', i afegirem un nou ''Alias'', a sota de tot, just abans del ''&amp;lt;/VirtualHost&amp;gt;''. Senzillament:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Editem el fitxer ''/etc/apache2/sites-available/000-default.conf'', i afegirem un nou ''Alias'', a sota de tot, just abans del ''&amp;lt;/VirtualHost&amp;gt;''. Senzillament:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Alias /IAW &amp;quot;/home/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;alumne&lt;/del&gt;/IAW/html&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Alias /IAW &amp;quot;/home/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;teu_usuari&lt;/ins&gt;/IAW/html&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;Directory &amp;quot;/home/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;alumne&lt;/del&gt;/IAW/html&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;Directory &amp;quot;/home/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;teu_usuari&lt;/ins&gt;/IAW/html&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;&amp;quot;&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;        Options Indexes MultiViews FollowSymLinks&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;        AllowOverride None&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Require all granted&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Require all granted&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        #Order deny,allow &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        #Deny from all   &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        #Allow from 127.0.0.0/255.0.0.0 ::1/128&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        #Allow from all&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        DirectoryIndex index.html default.html index.php&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;/Directory&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;/Directory&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l336&quot; &gt;Línia 336:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 345:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Veiem que es llista el contingut de tot el directori.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Veiem que es llista el contingut de tot el directori.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''NOTA''': n'hi ha prou fer ''Options &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;+&lt;/del&gt;Indexes''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''NOTA''': n'hi ha prou fer ''Options Indexes''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Redireccions===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Redireccions===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l382&quot; &gt;Línia 382:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 391:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Protegir un site amb password==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Protegir un site amb password==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hem vist en el fitxer ''apache2.conf'' que dins de cada directori puc ficar directives que s'apliquen al directori.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# AccessFileName: The name of the file to look for in each directory  &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# for additional configuration directives.  See also the AllowOverride&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# directive.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;AccessFileName .htaccess&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Anem a posar un login i pwd per entrar a l'aplicació http://localhost/iaw/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Anem a posar un login i pwd per entrar a l'aplicació http://localhost/iaw/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l397&quot; &gt;Línia 397:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 397:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*http://www.cristalab.com/tutoriales/213/proteger-carpetas-con-.htaccess-y-.htpasswd.html&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*http://www.cristalab.com/tutoriales/213/proteger-carpetas-con-.htaccess-y-.htpasswd.html&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''.htaccess'' establirà el tipus de permís necessari i quins usuaris poden accedir a quins arxius, mentre que ''.htpasswd'' guardarà el nom d'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;usuario &lt;/del&gt;i la constrasenya de cadascun d'ells.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''.htaccess'' establirà el tipus de permís necessari i quins usuaris poden accedir a quins arxius, mentre que ''.htpasswd'' guardarà el nom d'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;usuari &lt;/ins&gt;i la constrasenya de cadascun d'ells.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== fitxer .htaccess ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== fitxer .htaccess ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Aquest arxiu el &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;col.locarem &lt;/del&gt;en la carpeta que volem protegir: /home/joan/IAW/html/. Conté:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Aquest arxiu el &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;col·locarem &lt;/ins&gt;en la carpeta que volem protegir&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, on tenim la carpeta de l'assignatura. Per exemple&lt;/ins&gt;: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;/home/joan/IAW/html/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;. Conté:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AuthUserFile /home/joan/.htpasswd&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AuthUserFile /home/joan/.htpasswd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l408&quot; &gt;Línia 408:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 408:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;require user joan&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;require user joan&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;L'arxiu de contrassenyes s'ha de posar fora de l'abast de la web (''/home/joan/IAW/html'' està fora de la web, doncs la web accedeix a la carpeta ''html'').&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;L'arxiu de contrassenyes s'ha de posar fora de l'abast de la web (''/home/joan/IAW/html'' està fora de la web, doncs la web accedeix a la carpeta ''html'')&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. Per exemple, el posarem en el ''home'': ''/home/joan/.htpasswd''&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*''require user joan'': Indica que l'únic usuari que pot entrar és ''joan''. Tenim variacions d'aquesta línia:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*''require user joan'': Indica que l'únic usuari que pot entrar és ''joan'' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(evidentment ha de ser un usuari del sistema)&lt;/ins&gt;. Tenim variacions d'aquesta línia:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;require user joan otrousuario unusuariomas&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;require user joan otrousuario unusuariomas&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l432&quot; &gt;Línia 432:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 432:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== fitxer .htpasswd ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== fitxer .htpasswd ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Aquest fitxer ocult conté una llista de noms i contrassenyes, en format usuari:contrasenya. Per ex:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Ara hem de generar el fitxer ''.htpasswd''. &lt;/ins&gt;Aquest fitxer ocult conté una llista de noms i contrassenyes, en format &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;usuari:contrasenya&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;. Per ex:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;joan:12JvVkeJRgm8A&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;joan:12JvVkeJRgm8A&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l570&quot; &gt;Línia 570:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 570:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Autor}}, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;setembre 2018&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=Altres apunts=&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;*IOC: https://ioc.xtec.cat/materials/FP/Materials/2251_ASIX/ASIX_2251_M09/web/html/WebContent/u1/a1/continguts.html&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Autor}}, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;octubre 2020&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Categoria: Institut Jaume Balmes]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Categoria: Institut Jaume Balmes]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Categoria: ASIX-M09-IAW]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Categoria: ASIX-M09-IAW]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Servidors_Web._Apache._Instal.laci%C3%B3_i_Configuraci%C3%B3_I&amp;diff=258081&amp;oldid=prev</id>
		<title>Joan: /* Llistar el directori */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Servidors_Web._Apache._Instal.laci%C3%B3_i_Configuraci%C3%B3_I&amp;diff=258081&amp;oldid=prev"/>
		<updated>2018-12-11T18:57:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Llistar el directori&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
=Què és un servidor Web?=&lt;br /&gt;
*http://ca.wikipedia.org/wiki/Servidor_web&lt;br /&gt;
*http://es.wikipedia.org/wiki/Servidor_web&lt;br /&gt;
*Comparativa servidors web: https://trends.builtwith.com/web%20server#&lt;br /&gt;
*'''nginx''': https://es.wikipedia.org/wiki/Nginx&lt;br /&gt;
&lt;br /&gt;
=Instal.lació de l'Apache=&lt;br /&gt;
&lt;br /&gt;
Abans d'instal.lar-nos un projecte com l'Apache, hauríem de passar per la web oficial i mirar-nos la documentació:&lt;br /&gt;
*http://httpd.apache.org&lt;br /&gt;
*Documentació d'Apache: http://httpd.apache.org/docs/2.0/es/&lt;br /&gt;
Documentació oficial de l'Ubuntu (versions LTS) per al Servidor Apache:&lt;br /&gt;
*https://help.ubuntu.com/16.04/serverguide/httpd.html&lt;br /&gt;
*https://help.ubuntu.com/lts/serverguide/httpd.html (el mateix que 16.04)&lt;br /&gt;
&lt;br /&gt;
==Instal.lació des de les fonts==&lt;br /&gt;
Apache és un servei que s'executa en un servidor (típicament el nostre ordinador farà de servidor Web en aquesta assignatura). El ''servei'' Apache és un programa, que té un codi font que s'ha d'instal.lar en el nostre servidor. Com a projecte de codi lliure, tenim la possibilitat de descarregar el codi font, estudiar-lo, i fins i tot compilar-lo des de les fonts. A classe mirem el procediment per fer-ho, però instal.lar Apache des de les fonts és opcional. Millor fer-ho instal.lant el paquet Debian com s'explica més avall.&lt;br /&gt;
&lt;br /&gt;
Instal.lar Apache des de les fonts:&lt;br /&gt;
*http://httpd.apache.org/docs/2.0/es/install.html&lt;br /&gt;
'''NOTA''': la url directa on trobem els arxius per descarregar: http://archive.apache.org/dist/httpd/. Per exemple, podem descarregar l'arxiu ''httpd-2.4.23.tar.bz2'' de juliol de 2016.&lt;br /&gt;
&lt;br /&gt;
Veiem que el projecte original està escrit amb llenguatge C, la qual cosa no ens hauria de sorprendre.&lt;br /&gt;
==Instal.lació amb paquet Debian==&lt;br /&gt;
[[Fitxer:Apache2.png | thumbnail]]&lt;br /&gt;
'''NOTA'''. Aquest petit tutorial està actualitzat a Ubuntu 16.04 en una màquina acabada d'instal.lar.&lt;br /&gt;
&lt;br /&gt;
En una màquina acabada d'instal.lar no existeix cap servidor web en funcionament:&lt;br /&gt;
*http://localhost -&amp;gt; no funciona&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install apache2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
i un cop instal.lat ja funciona:&lt;br /&gt;
*http://localhost&lt;br /&gt;
i ens dóna molt informació que llegim amb deteniment&lt;br /&gt;
&lt;br /&gt;
===It works!===&lt;br /&gt;
This is the default welcome page used to test the correct operation of the Apache2 server after installation on Ubuntu systems. It is based on the equivalent page on Debian, from which the Ubuntu Apache packaging is derived. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at ''/var/www/html/index.html'') before continuing to operate your HTTP server.&lt;br /&gt;
&lt;br /&gt;
If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site's administrator.&lt;br /&gt;
Configuration Overview&lt;br /&gt;
&lt;br /&gt;
Ubuntu's Apache2 default configuration is different from the upstream default configuration, and split into several files optimized for interaction with Ubuntu tools. The configuration system is fully documented in ''/usr/share/doc/apache2/README.Debian.gz''. Refer to this for the full documentation. Documentation for the web server itself can be found by accessing the manual if the ''apache2-doc'' package was installed on this server.&lt;br /&gt;
&lt;br /&gt;
The configuration layout for an Apache2 web server installation on Ubuntu systems is as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/apache2/&lt;br /&gt;
|-- apache2.conf&lt;br /&gt;
|       `--  ports.conf&lt;br /&gt;
|-- mods-enabled&lt;br /&gt;
|       |-- *.load&lt;br /&gt;
|       `-- *.conf&lt;br /&gt;
|-- conf-enabled&lt;br /&gt;
|       `-- *.conf&lt;br /&gt;
|-- sites-enabled&lt;br /&gt;
|       `-- *.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;     &lt;br /&gt;
&lt;br /&gt;
*''apache2.conf'' is the main configuration file. It puts the pieces together by including all remaining configuration files when starting up the web server.&lt;br /&gt;
*''ports.conf'' is always included from the main configuration file. It is used to determine the listening ports for incoming connections, and this file can be customized anytime.&lt;br /&gt;
*Configuration files in the ''mods-enabled/'', ''conf-enabled/'' and ''sites-enabled/'' directories contain particular configuration snippets which manage modules, global configuration fragments, or virtual host configurations, respectively.&lt;br /&gt;
*They are activated by symlinking available configuration files from their respective -available/ counterparts. These should be managed by using our helpers ''a2enmod'', ''a2dismod'', ''a2ensite'', ''a2dissite'', and ''a2enconf'', ''a2disconf'' . See their respective man pages for detailed information.&lt;br /&gt;
*The binary is called ''apache2''. Due to the use of environment variables, in the default configuration, apache2 needs to be started/stopped with ''/etc/init.d/apache2'' or ''apache2ctl''. Calling /usr/bin/apache2 directly will not work with the default configuration.&lt;br /&gt;
===Document Roots===&lt;br /&gt;
By default, Ubuntu does not allow access through the web browser to any file apart of those located in ''/var/www'', ''public_html'' directories (when enabled) and ''/usr/share'' (for web applications). If your site is using a web document root located elsewhere (such as in ''/srv'') you may need to whitelist your document root directory in ''/etc/apache2/apache2.conf''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Configuració de l'Apache 2=&lt;br /&gt;
Un cop instal.lat l'Apache ja està arrencat el servei.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ps aux | grep apache2&lt;br /&gt;
$ ps aux | grep apache2&lt;br /&gt;
root      2800  0.0  0.1  71568  4552 ?        Ss   16:07   0:00 /usr/sbin/apache2 -k start&lt;br /&gt;
www-data  2803  0.0  0.1 360732  6012 ?        Sl   16:07   0:07 /usr/sbin/apache2 -k start&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Veiem que podem tenir diferentes línies. El servei '''Apache''' és el que el propietari és el ''root''. Aquells processos en què el propietari és ''www-data'' es corresponen al nostre navegador web i les pestanyes que tenim obertes.&lt;br /&gt;
&lt;br /&gt;
La versió que tenim instal.lada:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ apachectl -v&lt;br /&gt;
Server version: Apache/2.4.29 (Ubuntu)&lt;br /&gt;
Server built:   2018-06-27T17:05:04&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Aturar i arrencar el servei.==&lt;br /&gt;
Ho podem fer de vàries maneres.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo systemctl start apache2&lt;br /&gt;
$ sudo systemctl stop apache2&lt;br /&gt;
$ sudo systemctl status apache2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Per veure totes les opcions:&lt;br /&gt;
$ sudo systemctl --help&lt;br /&gt;
&lt;br /&gt;
Una altra manera:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo service apache2&lt;br /&gt;
Usage: apache2 {start|stop|graceful-stop|restart|reload|force-reload}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
i la manera antiga:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo /etc/init.d/apache2 restart&lt;br /&gt;
$ sudo /etc/init.d/apache2 --help&lt;br /&gt;
Usage: apache2 {start|stop|graceful-stop|restart|reload|force-reload}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Podem aturar el servei:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo /etc/init.d/apache2 stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
i la pàgina ''http://localhost'' deixa de funcionar (sempre molt de compte amb la ''cache''!!)&lt;br /&gt;
&lt;br /&gt;
Podem tornar a fer ''start''. També podem fer ''restart'' o ''reload''. Recordar que sempre que es canvien els fitxers de configuració s'ha de tornar a arrencar el servei (o fer un ''reload'').&lt;br /&gt;
&lt;br /&gt;
==Fitxer index.html==&lt;br /&gt;
Quan fem&lt;br /&gt;
*http://localhost&lt;br /&gt;
en realitat estem fent&lt;br /&gt;
*http://localhost/index.html&lt;br /&gt;
Anem a localitzar aquest fitxer. El trobarem a ''/var/www/html''.&lt;br /&gt;
&lt;br /&gt;
Edita el fitxer '''index.html''' i mira el seu contingut. Canvia el contingut del fitxer, i observa com efectivament canvia el contingut de la pàgina http://localhost.&lt;br /&gt;
&lt;br /&gt;
Recorda que ''index.html'' és una pàgina web, escrita amb llenguatge HTML. Hauràs de respectar la sintaxi HTML per tal d'editar el fitxer.&lt;br /&gt;
&lt;br /&gt;
==Fitxers de configuració==&lt;br /&gt;
Pots trobar informació dels fitxers de configuració a:&lt;br /&gt;
*https://help.ubuntu.com/lts/serverguide/httpd.html&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ls /etc/apache2/&lt;br /&gt;
&lt;br /&gt;
apache2.conf    conf-enabled  magic           mods-enabled  sites-available&lt;br /&gt;
conf-available  envvars       mods-available  ports.conf    sites-enabled&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*'''apache2.conf''': fitxer de configuració principal. Algunes de les línies que apareixen i que s'han de comentar són:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
AccessFileName .htaccess&lt;br /&gt;
...&lt;br /&gt;
ErrorLog ${APACHE_LOG_DIR}/error.log&lt;br /&gt;
...&lt;br /&gt;
LogLevel warn&lt;br /&gt;
...&lt;br /&gt;
# Include all the user configurations:&lt;br /&gt;
Include httpd.conf&lt;br /&gt;
...&lt;br /&gt;
# Include ports listing&lt;br /&gt;
Include ports.conf&lt;br /&gt;
...&lt;br /&gt;
LogFormat &amp;quot;%v:%p %h %l %u %t \&amp;quot;%r\&amp;quot; %&amp;gt;s %O \&amp;quot;%{Referer}i\&amp;quot; \&amp;quot;%{User-Agent}i\&amp;quot;&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
# Include the virtual host configurations:&lt;br /&gt;
Include sites-enabled/&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Veiem que el fitxer httpd.conf i ports.conf s'han d'incloure en aquest fitxer. És a dir, és com si tot el contingut d'aquests dos fitxers els incloguéssim.&lt;br /&gt;
*'''httpd.conf''' en principi està buit, i podem incloure configuracions de l'usuari, per exemple, per afegir nous ''sites''.&lt;br /&gt;
*'''ports.conf''' conté informació dels ports amb què treballa l'Apache. Si mirem el seu contingut, veurem que el port per defecte és el 80, i que per a la HTTP segura, https, el port és el 443.&lt;br /&gt;
&lt;br /&gt;
Recorda que:&lt;br /&gt;
*http://localhost és el mateix que http://localhost:80&lt;br /&gt;
*https://localhost és el mateix que https://localhost:443&lt;br /&gt;
&lt;br /&gt;
En les carpetes ''sites-available'' i ''sites-enabled'' hi ha la configiuració dels sites per defecte, que també podrem editar, configurar i afegir.&lt;br /&gt;
&lt;br /&gt;
A ''sites-available'' i ''sites-enabled'' trobem els següents arxius:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ls sites-available&lt;br /&gt;
&lt;br /&gt;
default&lt;br /&gt;
default-ssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
D'aquí poc editarem aquests arxius.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ls -la /etc/apache2/sites-enabled&lt;br /&gt;
&lt;br /&gt;
000-default -&amp;gt; ../sites-available/default&lt;br /&gt;
default-ssl -&amp;gt; ../sites-available/default-ssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Veiem que és un enllaç simbòlic als fitxers anteriors. És a dir, el que hi ha a ''sites-enabled'' és una còpia del que hi ha a ''sites-available''. Editant el fitxer ''default'' de ''sites-available'' ja queda modificat el que tenim a ''sites-enabled''.&lt;br /&gt;
&lt;br /&gt;
==Crear un site que pengi de /var/www/html==&lt;br /&gt;
Editem el fitxer ''/etc/apache2/sites-available/000-default.conf'', i veiem que:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DocumentRoot /var/www/html&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
És aquí on està definit el lloc per defecte on anar a buscar el contingut web. Quan fem ''http://localhost'', estem buscant el fitxer ''index.html'' que està a ''/var/www/html/''.&lt;br /&gt;
Si volem crear el site&lt;br /&gt;
*http://localhost/balmes&lt;br /&gt;
el més senzill és crear la carpeta ''balmes/'' dins de ''/var/www/html'', i crear el fitxer ''index.html'' i tota la carpeta de directoris.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo joe /var/www/html/balmes/index.html&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Balmes&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
Web del Balmes&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Però també podem crear sites que no pengin de ''/var/www/html'', com veurem ara mateix.&lt;br /&gt;
&lt;br /&gt;
==La web de l'assignatura IAW==&lt;br /&gt;
'''Objectiu''': anem a crear la web de l'assignatura IAW, que típicament estarà en el ''home'' de l'alumne: ''/home/alumne/IAW/html''.&lt;br /&gt;
&lt;br /&gt;
En l'assignatura '''IAW''' crearem petites pàgines web al llarg del curs (per exemple, quan aprenguem llenguatge PHP). Una possibilitat és crear la carpeta ''/var/www/iaw'', i crear aquí el nostre contingut web. El problema està en què ''/var/www'' té permisos especials. No és bona idea treballar en aquesta carpeta (encara que ho pots fer). Nosaltres ho farem d'una altra manera. La web de l'assignatura estarà en el home de l'alumne.&lt;br /&gt;
&lt;br /&gt;
===Àlies iaw/ associat a una carpeta en el /home===&lt;br /&gt;
Aquesta part que expliquem ara és molt '''important'''. Anem a configurar un ''site'' que serà la web de l'assignatura. A aquestes altures ja deus tenir una carpeta per l'assignatura. Típicament serà ''/home/alumne/IAW'' (en comptes de ''alumne'' serà el teu login, evidentment). En aquesta carpeta és on fiques tots els apunts i fitxers generats en l'assignatura. És una bona idea que totes les pàgines web que generis pengin d'aquesta carpeta. Típicament crearàs la carpeta&lt;br /&gt;
*/home/alumne/iaw/html&lt;br /&gt;
(en comptes de ''html'' és típic posar ''web'', ''www'', etc)&lt;br /&gt;
&lt;br /&gt;
Aquesta serà la manera de treballar: una carpeta per a l'assignatura, i a dins una carpeta ''html/'' on ficarem el contingut web.&lt;br /&gt;
&lt;br /&gt;
Ara ja podem crear la plantilla per a les webs que farem. Crearem un fitxer ''index.html'' que ens servirà de menú de tot el que anem fent al llarg de l'assignatura.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ joe /home/alumne/IAW/html/index.html&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Assignatura IAW&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Assignatura IAW&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;prova1.html&amp;quot;&amp;gt;prova1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;prova2.html&amp;quot;&amp;gt;prova2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
I també pots crear aquestes dues webs de prova, ''prova1.html'' i ''prova2.html'':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Prova 1&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Prova 1&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Prova 2&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Prova 2&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
El que volem ara és que al fer ''http://localhost/IAW'' ens aparegui la web de l'assignatura. Per tant, el que hem de fer és crear el ''site'' virtual ''IAW/'', que és un ''Alias'' associat a ''/home/alumne/IAW/html''. Anem a fer-ho.&lt;br /&gt;
&lt;br /&gt;
Editem el fitxer ''/etc/apache2/sites-available/000-default.conf'', i afegirem un nou ''Alias'', a sota de tot, just abans del ''&amp;lt;/VirtualHost&amp;gt;''. Senzillament:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    Alias /IAW &amp;quot;/home/alumne/IAW/html&amp;quot;&lt;br /&gt;
    &amp;lt;Directory &amp;quot;/home/alumne/IAW/html&amp;quot;&amp;gt;&lt;br /&gt;
        Require all granted&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''NOTA''': Si tenim experiència amb Apache2.2, i ara estem amb Apache2.4, hem de tenir en compte que hi ha directives que han canviat (http://httpd.apache.org/docs/current/upgrading.html). Les directives tipus ''Allow'' ara ja no s'utilitzen.&lt;br /&gt;
&lt;br /&gt;
És a dir, estem associant el lloc virutual ''/IAW'' a la carpeta de l'assignatura.&lt;br /&gt;
&lt;br /&gt;
Recorda fer, doncs hem canviat un fitxer de configuració:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo /etc/init.d/apache2 reload&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*http://localhost/IAW&lt;br /&gt;
&lt;br /&gt;
'''NOTA'''. Vés molt de compte sempre amb la ''cache'', que et pot fer jugar males passades.&lt;br /&gt;
&lt;br /&gt;
==Algunes directives importants==&lt;br /&gt;
===index.html, default.html, index.php===&lt;br /&gt;
No és necessari tenir un fitxer ''index.html''. També és típic que el fitxer d'entrada es digui ''index.htm'', ''default.html'', ''default.htm'', ''index.php''. Això ho controlaràs amb la directiva&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DirectoryIndex index.html default.html index.php&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
que et marca l'ordre.&lt;br /&gt;
&lt;br /&gt;
'''NOTA''': és possible que a hores d'ara no puguis executar fitxers PHP. Per exemple, prova de fer ''index.php'':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php phpinfo();?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
De seguida ho arreglarem.&lt;br /&gt;
&lt;br /&gt;
Crea el fitxer ''entrada.htm'', i fés que aquesta sigui el punt d'entrada de la teva web.&lt;br /&gt;
&lt;br /&gt;
===Require (Allow, deny)===&lt;br /&gt;
*https://httpd.apache.org/docs/2.4/howto/access.html&lt;br /&gt;
*http://httpd.apache.org/docs/current/mod/directives.html&lt;br /&gt;
A l'apache2.4 tenim la directiva ''Require'' per determinar si un client pot accedir al servidor web (a l'Apache 2.2 teníem les directives ''Allow'', ''Deny''). &lt;br /&gt;
&lt;br /&gt;
Com a norma general:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Require all granted&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Si només volem acceptar peticions que vinguin de localhost farem:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Require all denied&lt;br /&gt;
Require ip 127.0.0.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*http://localhost/IAW -&amp;gt; funciona&lt;br /&gt;
*http://192.168.0.57/IAW -&amp;gt; no funciona (''Forbidden'')&lt;br /&gt;
I si volem accedir amb la IP:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Require all denied&lt;br /&gt;
Require ip 192.168.0.57&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
I si volem accedir a tot el rang de IPs:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Require all denied&lt;br /&gt;
Require ip 127.0.0.0/255.0.0.0 ::1/128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Llistar el directori===&lt;br /&gt;
*http://stackoverflow.com/questions/21346486/how-to-show-directory-index-in-apache-2-4-with-custom-document-root&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mv index.html index.html.bak&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Ara no existeix el fitxer index.html&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        DirectoryIndex disabled&lt;br /&gt;
        Options Indexes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*http://localhost/IAW&lt;br /&gt;
Veiem que es llista el contingut de tot el directori.&lt;br /&gt;
&lt;br /&gt;
'''NOTA''': n'hi ha prou fer ''Options +Indexes''&lt;br /&gt;
&lt;br /&gt;
===Redireccions===&lt;br /&gt;
*https://httpd.apache.org/docs/current/mod/mod_alias.html&lt;br /&gt;
A vegades hauràs vist que una url et redirecciona a una altra url. Això de fet es pot fer des del codi HTML o el codi PHP. Però és el mateix servidor Apache que també ho pot fer.&lt;br /&gt;
&lt;br /&gt;
Anem a fer una redirecció senzilla:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    Alias /IAW &amp;quot;/home/joan/IAW/html&amp;quot;&lt;br /&gt;
    &amp;lt;Directory &amp;quot;/home/joan/IAW/html&amp;quot;&amp;gt;&lt;br /&gt;
        Require all granted&lt;br /&gt;
        Redirect &amp;quot;/IAW&amp;quot; &amp;quot;/IAW2&amp;quot;&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Alias /IAW2 &amp;quot;/home/joan/IAW/html/prova&amp;quot;&lt;br /&gt;
    &amp;lt;Directory &amp;quot;/home/joan/IAW/html/prova&amp;quot;&amp;gt;&lt;br /&gt;
        Require all granted&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Crea la carpeta ''IAW/html/prova'', i a dins fica un fitxer ''index.html''.&lt;br /&gt;
&lt;br /&gt;
Per tant:&lt;br /&gt;
*http://localhost/IAW&lt;br /&gt;
et redirecciona a:&lt;br /&gt;
*http://localhost/IAW2&lt;br /&gt;
&lt;br /&gt;
==Configurar el Apache per utilitzar el port 8080==&lt;br /&gt;
A /etc/apache2/ports.conf puc canviar el port per defecte:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NameVirtualHost *:8080&lt;br /&gt;
Listen 8080&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A més, a ''/etc/apache2/sites-available/000-default.conf'' he de dir que els ''VirtualHosts'' treballin en el port 8080:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:8080&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
i ara ja tenim el servidor Apache funcionant pel port 8080:&lt;br /&gt;
*http://localhost:8080/IAW/&lt;br /&gt;
&lt;br /&gt;
Tornar a deixar-ho com estava.&lt;br /&gt;
&lt;br /&gt;
==Protegir un site amb password==&lt;br /&gt;
Hem vist en el fitxer ''apache2.conf'' que dins de cada directori puc ficar directives que s'apliquen al directori.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# AccessFileName: The name of the file to look for in each directory  &lt;br /&gt;
# for additional configuration directives.  See also the AllowOverride&lt;br /&gt;
# directive.&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
AccessFileName .htaccess&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Anem a posar un login i pwd per entrar a l'aplicació http://localhost/iaw/&lt;br /&gt;
&lt;br /&gt;
Podem seguir:&lt;br /&gt;
*http://www.cristalab.com/tutoriales/213/proteger-carpetas-con-.htaccess-y-.htpasswd.html&lt;br /&gt;
&lt;br /&gt;
''.htaccess'' establirà el tipus de permís necessari i quins usuaris poden accedir a quins arxius, mentre que ''.htpasswd'' guardarà el nom d'usuario i la constrasenya de cadascun d'ells.&lt;br /&gt;
&lt;br /&gt;
=== fitxer .htaccess ===&lt;br /&gt;
Aquest arxiu el col.locarem en la carpeta que volem protegir: /home/joan/IAW/html/. Conté:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AuthUserFile /home/joan/.htpasswd&lt;br /&gt;
AuthName &amp;quot;Assignatura IAW&amp;quot;&lt;br /&gt;
AuthType Basic&lt;br /&gt;
&lt;br /&gt;
require user joan&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
L'arxiu de contrassenyes s'ha de posar fora de l'abast de la web (''/home/joan/IAW/html'' està fora de la web, doncs la web accedeix a la carpeta ''html'').&lt;br /&gt;
&lt;br /&gt;
*''require user joan'': Indica que l'únic usuari que pot entrar és ''joan''. Tenim variacions d'aquesta línia:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
require user joan otrousuario unusuariomas&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
on es poden especificar 2 o més usuaris. També:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
require valid-user&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
on poden entrar tots els usuaris llistats a .htaccess.&lt;br /&gt;
&lt;br /&gt;
També es pot protegir un arxiu. Per ex,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AuthUserFile /home/joan/.htpasswd&lt;br /&gt;
&amp;quot;Assignatura IAW&amp;quot;&lt;br /&gt;
AuthType Basic&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Files &amp;quot;fitxer1.html&amp;quot;&amp;gt;&lt;br /&gt;
 Require valid-user&lt;br /&gt;
&amp;lt;/Files&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== fitxer .htpasswd ===&lt;br /&gt;
Aquest fitxer ocult conté una llista de noms i contrassenyes, en format usuari:contrasenya. Per ex:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
joan:12JvVkeJRgm8A&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
La contrasenya està encriptada amb una variació de l'algorisme MD5 realitzada per Apache.&lt;br /&gt;
&lt;br /&gt;
Per escriure en el fitxer ''.htpasswd'' utilitzem la utilitat ''htpasswd''.&lt;br /&gt;
&lt;br /&gt;
Em situo a ''/home/joan/'', que és on ha d'estar el fitxer ''.htpasswd'':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ htpasswd -cb .htpasswd joan ****&lt;br /&gt;
$ cat .htpasswd &lt;br /&gt;
joan:gPQnbGnD6l2Tw&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
reiniciem el servidor&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
i ja tenim el recurs ''http://localhost/iaw'' protegit amb login i password&lt;br /&gt;
&lt;br /&gt;
'''NOTA''': per tal de què funcioni és important la directiva '''AllowOverride all''' en la configuració del nostre ''site'' en el fitxer ''default''. Si tenim '''AllowOverride None''' no funciona.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    Alias /IAW &amp;quot;/home/joan/IAW/html&amp;quot;&lt;br /&gt;
    &amp;lt;Directory &amp;quot;/home/joan/IAW/html&amp;quot;&amp;gt;&lt;br /&gt;
        Require all granted&lt;br /&gt;
        AllowOverride all&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Funcionalitat PHP i d'altres==&lt;br /&gt;
De moment no tenim la funcionalitat php instal.lada:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo joe /home/joan/IAW/html/index.php&lt;br /&gt;
&amp;lt;?php phpinfo();?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*http://localhost/IAW/test.php -&amp;gt; error, no carrega la pàgina&lt;br /&gt;
I és que el servidor Apache no sap en aquests moments què és PHP, no sap interpretar les comandes. He d'instal.lar els mòduls de PHP per a Apache, a través dels paquets Debian. Per saber quins són necessaris farem:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-cache search php | grep apache2&lt;br /&gt;
&lt;br /&gt;
libapache2-mod-php - server-side, HTML-embedded scripting language (Apache 2 module)&lt;br /&gt;
libapache2-mod-php5filter - server-side, HTML-embedded scripting language (apache 2 filter module)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
També podíem fer al revés:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-cache search apache2 | grep php&lt;br /&gt;
&lt;br /&gt;
libapache2-mod-php - server-side, HTML-embedded scripting language (Apache 2 module)&lt;br /&gt;
php5-cgi - server-side, HTML-embedded scripting language (CGI binary)&lt;br /&gt;
libapache2-mod-php5filter - server-side, HTML-embedded scripting language (apache 2 filter module)&lt;br /&gt;
php5-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Està clar que hem d'instal.lar el paquet ''libapache2-mod-php'':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install libapache2-mod-php&lt;br /&gt;
$ sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
i ara ja funciona ''index.php''. Quan el servidor Apache ha d'executar un script PHP, separa la part de HTML i la part de PHP (fàcil tenint en compte que hi ha els tags &amp;lt;?php ?&amp;gt; per saber on comença el codi). El codi PHP s'envia al preprocessador de PHP, i finalment s'ajunta el resultat amb el codi HTML, i ja es pot servir al client la pàgina web final.&lt;br /&gt;
&lt;br /&gt;
En la configuració de l'Apache veiem que el mòdul de PHP està habilitat:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /etc/apache2/mods-available&lt;br /&gt;
&lt;br /&gt;
$ ls -la&lt;br /&gt;
...&lt;br /&gt;
-rw-r--r-- 1 root root  546 des 12  2016 php7.0.conf&lt;br /&gt;
-rw-r--r-- 1 root root   59 des 12  2016 php7.0.load&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
De la mateixa manera que Apache pot executar PHP, també pot executar d'altres llenguatges de script. Per ex:&lt;br /&gt;
*CGI: '''php5-cgi''' - server-side, HTML-embedded scripting language (CGI binary). Executa els scripts cgi a través de PHP&lt;br /&gt;
*Python: '''libapache2-mod-python''' - Python-embedding module for Apache 2&lt;br /&gt;
&lt;br /&gt;
==Accedir amb la IP==&lt;br /&gt;
És una bona pràctica accedir al teu servidor web fora de localhost. Per exemple, pots deixar que els teus companys entrin al teu servidor web. O d'una màquina virtual pots accedir al servidor web que hi ha en una altra màquina virtual.&lt;br /&gt;
&lt;br /&gt;
A part de la configuració '''Required all granted'', recorda que els paquets IP han de passar per diferents filtres: proxy, firewalls, switchos, els ports han d'estar oberts. És per això que a classe, on els alumnes es connecten majoritàriament per wireless, es fa difícil accedir a una IP d'un company.&lt;br /&gt;
&lt;br /&gt;
El que sí que pots fer és accedir entre dues màquines virtuals.&lt;br /&gt;
&lt;br /&gt;
==HTTPS: HTTP segura==&lt;br /&gt;
HTTPS: Hypertext Transfer Protocol sobre Secure Socket Layer&lt;br /&gt;
*http://ca.wikipedia.org/wiki/HTTPS&lt;br /&gt;
&lt;br /&gt;
https funciona pel port 443 (segons consta en el fitxer ''ports.conf'').&lt;br /&gt;
&lt;br /&gt;
Important llegir:&lt;br /&gt;
*https://help.ubuntu.com/lts/serverguide/httpd.html#https-configuration&lt;br /&gt;
El mòdul '''mod_ssl''' afegeix una important característica al servidor Apache2: la possibilitat d'encriptar les comunicacions. Quan el teu navegador es comunica via SSL, aparei el prefix ''https://'' en la ''Uniform Resource Locator'' (URL).&lt;br /&gt;
&lt;br /&gt;
El mòdul ''mod_ssl'' està disponible en el paquet '''apache2-common'''. Per tant, l'instal.laríem fent&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install apache2-common&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
però no cal fer-ho perquè s'instal.la per defecte amb l'Apache. El que no es fa per defecte és habilitar aquest mòdul, i per tant l'habilitem manualment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo a2enmod ssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
El fitxer de configuració per defecte està a ''/etc/apache2/sites-available/default-ssl.conf''. Però no n'hi ha prou en configurar aquest fitxer. Si volem utilitzar https necessitem un certificat i una clau. La configuració HTTPS per defecte utilitza un certificat i una clau generades pel paquet '''ssl-cert''' (que ja estava instal.lat). Estan bé per fer proves, com és el nostre cas, però el certificat i la clau auto-generades s'haurien de reemplaçar per un certificat específic del centre o servidor al qual pertanyem. Una mica més avall s'explicarà com generar el certificat.&lt;br /&gt;
&lt;br /&gt;
A part de tenir el mòdul habilitat, per utilitzar https hem d'habilitar el fitxer de configuració:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo a2ensite default-ssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reiniciem el servei i ja funciona. Clico ''Entenc els riscos'', i ''Afegeixo una excepció''.&lt;br /&gt;
[[Imatge:Excepcio https.jpg|thumbnail]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo service apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*https://localhost&lt;br /&gt;
&lt;br /&gt;
Ara volem que la web de l'assignatura sigui segura:&lt;br /&gt;
*https://localhost/IAWSEC&lt;br /&gt;
&lt;br /&gt;
Hem de crear el lloc virtual IAWSEC. Editem el fitxer /etc/apache2/sites-available/default-ssl. Afegim:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    Alias /IAWSEC &amp;quot;/home/joan/IAW/html&amp;quot;&lt;br /&gt;
    &amp;lt;Directory &amp;quot;/home/joan/IAW/html&amp;quot;&amp;gt;&lt;br /&gt;
        Require all granted&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*https://localhost/IAWSEC/&lt;br /&gt;
&lt;br /&gt;
==Petits errors==&lt;br /&gt;
Quan arrenquem el servei Apache potser tenim aquest missatge:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo /etc/init.d/apache2 reload&lt;br /&gt;
 * Reloading web server config apache2    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Si no volem que ens aparegui aquest missatge, senzillament ficarem a la primera línia:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo joe /etc/apache2/httpd.conf&lt;br /&gt;
ServerName IAW&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Autor}}, setembre 2018&lt;br /&gt;
[[Categoria: Institut Jaume Balmes]]&lt;br /&gt;
[[Categoria: ASIX-M09-IAW]]&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>