]> git.piffa.net Git - doc/.git/commitdiff
Aggiunto htacces per apache
authorAndrea Manni <andrea@andreamanni.com>
Tue, 12 May 2009 10:49:57 +0000 (12:49 +0200)
committerAndrea Manni <andrea@andreamanni.com>
Tue, 12 May 2009 10:49:57 +0000 (12:49 +0200)
servizi.html
source/servizi.txt

index d601518b00d998057d08a64c20af4622876aed6d..1c57465c05d5c4a7f548c0265e1a6d71532baa85 100644 (file)
       <ul class="auto-toc simple">
         <li>
           <a class="reference internal" href=
-          "#configurazione-sistema" id="id5" name=
-          "id5">1&nbsp;&nbsp;&nbsp;Configurazione sistema</a>
+          "#configurazione-sistema" id="id6" name=
+          "id6">1&nbsp;&nbsp;&nbsp;Configurazione sistema</a>
 
           <ul class="auto-toc">
             <li><a class="reference internal" href=
-            "#solo-per-uso-interno" id="id6" name=
-            "id6">1.1&nbsp;&nbsp;&nbsp;Solo per uso
+            "#solo-per-uso-interno" id="id7" name=
+            "id7">1.1&nbsp;&nbsp;&nbsp;Solo per uso
             interno</a></li>
 
-            <li><a class="reference internal" href="#rete" id="id7"
-            name="id7">1.2&nbsp;&nbsp;&nbsp;Rete</a></li>
+            <li><a class="reference internal" href="#rete" id="id8"
+            name="id8">1.2&nbsp;&nbsp;&nbsp;Rete</a></li>
 
             <li><a class="reference internal" href=
-            "#bash-completion" id="id8" name=
-            "id8">1.3&nbsp;&nbsp;&nbsp;Bash completion</a></li>
+            "#bash-completion" id="id9" name=
+            "id9">1.3&nbsp;&nbsp;&nbsp;Bash completion</a></li>
 
-            <li><a class="reference internal" href="#vim" id="id9"
-            name="id9">1.4&nbsp;&nbsp;&nbsp;Vim</a></li>
+            <li><a class="reference internal" href="#vim" id="id10"
+            name="id10">1.4&nbsp;&nbsp;&nbsp;Vim</a></li>
 
-            <li><a class="reference internal" href="#vnc" id="id10"
-            name="id10">1.5&nbsp;&nbsp;&nbsp;VNC</a></li>
+            <li><a class="reference internal" href="#vnc" id="id11"
+            name="id11">1.5&nbsp;&nbsp;&nbsp;VNC</a></li>
 
             <li><a class="reference internal" href=
-            "#lista-dei-pacchetti-di-base" id="id11" name=
-            "id11">1.6&nbsp;&nbsp;&nbsp;Lista dei pacchetti di
+            "#lista-dei-pacchetti-di-base" id="id12" name=
+            "id12">1.6&nbsp;&nbsp;&nbsp;Lista dei pacchetti di
             base</a></li>
 
             <li>
               <a class="reference internal" href=
-              "#apt-configurazione" id="id12" name=
-              "id12">1.7&nbsp;&nbsp;&nbsp;Apt configurazione</a>
+              "#apt-configurazione" id="id13" name=
+              "id13">1.7&nbsp;&nbsp;&nbsp;Apt configurazione</a>
 
               <ul class="auto-toc">
                 <li><a class="reference internal" href=
-                "#sources-list" id="id13" name=
-                "id13">1.7.1&nbsp;&nbsp;&nbsp;sources.list</a></li>
+                "#sources-list" id="id14" name=
+                "id14">1.7.1&nbsp;&nbsp;&nbsp;sources.list</a></li>
 
                 <li><a class="reference internal" href=
-                "#etc-apt-apt-conf" id="id14" name=
-                "id14">1.7.2&nbsp;&nbsp;&nbsp;/etc/apt/apt.conf</a></li>
+                "#etc-apt-apt-conf" id="id15" name=
+                "id15">1.7.2&nbsp;&nbsp;&nbsp;/etc/apt/apt.conf</a></li>
               </ul>
             </li>
           </ul>
         </li>
 
-        <li><a class="reference internal" href="#squid" id="id15"
-        name="id15">2&nbsp;&nbsp;&nbsp;Squid</a></li>
+        <li><a class="reference internal" href="#squid" id="id16"
+        name="id16">2&nbsp;&nbsp;&nbsp;Squid</a></li>
 
         <li>
-          <a class="reference internal" href="#apache" id="id16"
-          name="id16">3&nbsp;&nbsp;&nbsp;Apache</a>
+          <a class="reference internal" href="#apache" id="id17"
+          name="id17">3&nbsp;&nbsp;&nbsp;Apache</a>
 
           <ul class="auto-toc">
             <li><a class="reference internal" href=
-            "#pacchetti-da-installare" id="id17" name=
-            "id17">3.1&nbsp;&nbsp;&nbsp;Pacchetti da
+            "#pacchetti-da-installare" id="id18" name=
+            "id18">3.1&nbsp;&nbsp;&nbsp;Pacchetti da
             installare::</a></li>
 
             <li><a class="reference internal" href=
-            "#configurazione-di-apache" id="id18" name=
-            "id18">3.2&nbsp;&nbsp;&nbsp;Configurazione di
+            "#configurazione-di-apache" id="id19" name=
+            "id19">3.2&nbsp;&nbsp;&nbsp;Configurazione di
             Apache</a></li>
 
             <li><a class="reference internal" href="#apache-conf"
-            id="id19" name=
-            "id19">3.3&nbsp;&nbsp;&nbsp;apache.conf</a></li>
+            id="id20" name=
+            "id20">3.3&nbsp;&nbsp;&nbsp;apache.conf</a></li>
 
             <li>
               <a class="reference internal" href=
-              "#installazione-di-php" id="id20" name=
-              "id20">3.4&nbsp;&nbsp;&nbsp;Installazione di PHP</a>
+              "#installazione-di-php" id="id21" name=
+              "id21">3.4&nbsp;&nbsp;&nbsp;Installazione di PHP</a>
 
               <ul class="auto-toc">
                 <li><a class="reference internal" href=
-                "#test-del-modulo-php" id="id21" name=
-                "id21">3.4.1&nbsp;&nbsp;&nbsp;Test del modulo
+                "#test-del-modulo-php" id="id22" name=
+                "id22">3.4.1&nbsp;&nbsp;&nbsp;Test del modulo
                 php</a></li>
 
                 <li><a class="reference internal" href=
-                "#installazione-del-supporto-per-mysql" id="id22"
-                name="id22">3.4.2&nbsp;&nbsp;&nbsp;Installazione
+                "#installazione-del-supporto-per-mysql" id="id23"
+                name="id23">3.4.2&nbsp;&nbsp;&nbsp;Installazione
                 del supporto per Mysql</a></li>
 
                 <li><a class="reference internal" href=
-                "#phpmyadmin" id="id23" name=
-                "id23">3.4.3&nbsp;&nbsp;&nbsp;phpmyadmin</a></li>
+                "#phpmyadmin" id="id24" name=
+                "id24">3.4.3&nbsp;&nbsp;&nbsp;phpmyadmin</a></li>
 
                 <li><a class="reference internal" href=
                 "#installazione-del-supporto-per-postgresql" id=
-                "id24" name=
-                "id24">3.4.4&nbsp;&nbsp;&nbsp;Installazione del
+                "id25" name=
+                "id25">3.4.4&nbsp;&nbsp;&nbsp;Installazione del
                 supporto per Postgresql</a></li>
 
                 <li><a class="reference internal" href=
-                "#phppgadmin" id="id25" name=
-                "id25">3.4.5&nbsp;&nbsp;&nbsp;phppgadmin</a></li>
+                "#phppgadmin" id="id26" name=
+                "id26">3.4.5&nbsp;&nbsp;&nbsp;phppgadmin</a></li>
               </ul>
             </li>
 
             <li>
               <a class="reference internal" href="#virtual-hosts"
-              id="id26" name="id26">3.5&nbsp;&nbsp;&nbsp;Virtual
+              id="id27" name="id27">3.5&nbsp;&nbsp;&nbsp;Virtual
               hosts</a>
 
               <ul class="auto-toc">
                 <li><a class="reference internal" href=
-                "#gestione-dns" id="id27" name=
-                "id27">3.5.1&nbsp;&nbsp;&nbsp;Gestione DNS</a></li>
+                "#gestione-dns" id="id28" name=
+                "id28">3.5.1&nbsp;&nbsp;&nbsp;Gestione DNS</a></li>
 
                 <li><a class="reference internal" href=
-                "#virtual-host" id="id28" name=
-                "id28">3.5.2&nbsp;&nbsp;&nbsp;Virtual host</a></li>
+                "#virtual-host" id="id29" name=
+                "id29">3.5.2&nbsp;&nbsp;&nbsp;Virtual host</a></li>
               </ul>
             </li>
 
             <li>
               <a class="reference internal" href=
-              "#negoziazione-accessi" id="id29" name=
-              "id29">3.6&nbsp;&nbsp;&nbsp;Negoziazione accessi</a>
+              "#negoziazione-accessi" id="id30" name=
+              "id30">3.6&nbsp;&nbsp;&nbsp;Negoziazione accessi</a>
 
               <ul class="auto-toc">
                 <li><a class="reference internal" href=
-                "#limiti-su-base-ip" id="id30" name=
-                "id30">3.6.1&nbsp;&nbsp;&nbsp;Limiti su base
+                "#limiti-su-base-ip" id="id31" name=
+                "id31">3.6.1&nbsp;&nbsp;&nbsp;Limiti su base
                 ip</a></li>
 
                 <li><a class="reference internal" href=
-                "#user-authentication" id="id31" name=
-                "id31">3.6.2&nbsp;&nbsp;&nbsp;User
+                "#user-authentication" id="id32" name=
+                "id32">3.6.2&nbsp;&nbsp;&nbsp;User
                 Authentication</a></li>
               </ul>
             </li>
 
+            <li><a class="reference internal" href=
+            "#definire-la-cartella" id="id33" name=
+            "id33">3.7&nbsp;&nbsp;&nbsp;Definire la
+            cartella</a></li>
+
+            <li><a class="reference internal" href=
+            "#creazione-del-database-delle-passwords" id="id34"
+            name="id34">3.8&nbsp;&nbsp;&nbsp;Creazione del database
+            delle passwords</a></li>
+
+            <li><a class="reference internal" href="#id3" id="id35"
+            name="id35">3.9&nbsp;&nbsp;&nbsp;Configurazione di
+            Apache</a></li>
+
             <li><a class="reference internal" href="#cavets" id=
-            "id32" name="id32">3.7&nbsp;&nbsp;&nbsp;Cavets</a></li>
+            "id36" name=
+            "id36">3.10&nbsp;&nbsp;&nbsp;Cavets</a></li>
           </ul>
         </li>
 
         <li>
           <a class="reference internal" href="#domain-name-system"
-          id="id33" name="id33">4&nbsp;&nbsp;&nbsp;Domain Name
+          id="id37" name="id37">4&nbsp;&nbsp;&nbsp;Domain Name
           System</a>
 
           <ul class="auto-toc">
             <li><a class="reference internal" href=
-            "#nomi-di-dominio" id="id34" name=
-            "id34">4.1&nbsp;&nbsp;&nbsp;Nomi di dominio</a></li>
+            "#nomi-di-dominio" id="id38" name=
+            "id38">4.1&nbsp;&nbsp;&nbsp;Nomi di dominio</a></li>
 
             <li><a class="reference internal" href=
-            "#tipologie-di-record" id="id35" name=
-            "id35">4.2&nbsp;&nbsp;&nbsp;Tipologie di
+            "#tipologie-di-record" id="id39" name=
+            "id39">4.2&nbsp;&nbsp;&nbsp;Tipologie di
             record</a></li>
 
             <li><a class="reference internal" href="#utilizzo" id=
-            "id36" name=
-            "id36">4.3&nbsp;&nbsp;&nbsp;Utilizzo</a></li>
+            "id40" name=
+            "id40">4.3&nbsp;&nbsp;&nbsp;Utilizzo</a></li>
 
             <li><a class="reference internal" href=
-            "#risoluzione-dei-nomi-di-dominio" id="id37" name=
-            "id37">4.4&nbsp;&nbsp;&nbsp;Risoluzione dei nomi di
+            "#risoluzione-dei-nomi-di-dominio" id="id41" name=
+            "id41">4.4&nbsp;&nbsp;&nbsp;Risoluzione dei nomi di
             dominio</a></li>
 
-            <li><a class="reference internal" href="#dig" id="id38"
-            name="id38">4.5&nbsp;&nbsp;&nbsp;Dig</a></li>
+            <li><a class="reference internal" href="#dig" id="id42"
+            name="id42">4.5&nbsp;&nbsp;&nbsp;Dig</a></li>
           </ul>
         </li>
 
-        <li><a class="reference internal" href="#dnsmasq" id="id39"
-        name="id39">5&nbsp;&nbsp;&nbsp;DNSmasq</a></li>
+        <li><a class="reference internal" href="#dnsmasq" id="id43"
+        name="id43">5&nbsp;&nbsp;&nbsp;DNSmasq</a></li>
 
         <li>
-          <a class="reference internal" href="#samba" id="id40"
-          name="id40">6&nbsp;&nbsp;&nbsp;Samba</a>
+          <a class="reference internal" href="#samba" id="id44"
+          name="id44">6&nbsp;&nbsp;&nbsp;Samba</a>
 
           <ul class="auto-toc">
             <li><a class="reference internal" href="#pacchetti" id=
-            "id41" name=
-            "id41">6.1&nbsp;&nbsp;&nbsp;Pacchetti</a></li>
+            "id45" name=
+            "id45">6.1&nbsp;&nbsp;&nbsp;Pacchetti</a></li>
 
             <li><a class="reference internal" href=
-            "#passwords-e-autenticazione" id="id42" name=
-            "id42">6.2&nbsp;&nbsp;&nbsp;Passwords e
+            "#passwords-e-autenticazione" id="id46" name=
+            "id46">6.2&nbsp;&nbsp;&nbsp;Passwords e
             autenticazione</a></li>
 
             <li><a class="reference internal" href=
-            "#creazione-utenti" id="id43" name=
-            "id43">6.3&nbsp;&nbsp;&nbsp;Creazione Utenti</a></li>
+            "#creazione-utenti" id="id47" name=
+            "id47">6.3&nbsp;&nbsp;&nbsp;Creazione Utenti</a></li>
 
             <li>
               <a class="reference internal" href=
-              "#creare-la-condivisione" id="id44" name=
-              "id44">6.4&nbsp;&nbsp;&nbsp;Creare la
+              "#creare-la-condivisione" id="id48" name=
+              "id48">6.4&nbsp;&nbsp;&nbsp;Creare la
               condivisione</a>
 
               <ul class="auto-toc">
                 <li><a class="reference internal" href=
                 "#sicurezza-permessi-di-esecuzione-sul-server" id=
-                "id45" name=
-                "id45">6.4.1&nbsp;&nbsp;&nbsp;Sicurezza: permessi
+                "id49" name=
+                "id49">6.4.1&nbsp;&nbsp;&nbsp;Sicurezza: permessi
                 di esecuzione sul server</a></li>
               </ul>
             </li>
 
             <li><a class="reference internal" href=
             "#configurazione-dell-applicativo-samba-vero-e-proprio"
-            id="id46" name=
-            "id46">6.5&nbsp;&nbsp;&nbsp;Configurazione
+            id="id50" name=
+            "id50">6.5&nbsp;&nbsp;&nbsp;Configurazione
             dell'applicativo Samba vero e proprio.</a></li>
 
             <li><a class="reference internal" href=
-            "#testare-il-servizio" id="id47" name=
-            "id47">6.6&nbsp;&nbsp;&nbsp;Testare il
+            "#testare-il-servizio" id="id51" name=
+            "id51">6.6&nbsp;&nbsp;&nbsp;Testare il
             Servizio</a></li>
           </ul>
         </li>
 
-        <li><a class="reference internal" href="#note" id="id48"
-        name="id48">7&nbsp;&nbsp;&nbsp;NOTE</a></li>
+        <li><a class="reference internal" href="#note" id="id52"
+        name="id52">7&nbsp;&nbsp;&nbsp;NOTE</a></li>
       </ul>
     </div>
 
 
     <div class="section" id="configurazione-sistema">
       <h1><a class="toc-backref" href=
-      "#id5">1&nbsp;&nbsp;&nbsp;Configurazione sistema</a></h1>
+      "#id6">1&nbsp;&nbsp;&nbsp;Configurazione sistema</a></h1>
 
       <div class="section" id="solo-per-uso-interno">
         <h2><a class="toc-backref" href=
-        "#id6">1.1&nbsp;&nbsp;&nbsp;Solo per uso interno</a></h2>
+        "#id7">1.1&nbsp;&nbsp;&nbsp;Solo per uso interno</a></h2>
 
         <p>Impostazioni di base per la configurazione del sistema
         operativo e della rete nel laboratorio 208 facente parte
 
       <div class="section" id="rete">
         <h2><a class="toc-backref" href=
-        "#id7">1.2&nbsp;&nbsp;&nbsp;Rete</a></h2>
+        "#id8">1.2&nbsp;&nbsp;&nbsp;Rete</a></h2>
 
         <p>Parametri della rete attualmente in uso:</p>
 
 
       <div class="section" id="bash-completion">
         <h2><a class="toc-backref" href=
-        "#id8">1.3&nbsp;&nbsp;&nbsp;Bash completion</a></h2>
+        "#id9">1.3&nbsp;&nbsp;&nbsp;Bash completion</a></h2>
 
         <p>Il completamento automatico della shell (che si attiva
         premendo il tasto tab una o due volte mentre si sta
@@ -736,7 +751,7 @@ umask 022
 
       <div class="section" id="vim">
         <h2><a class="toc-backref" href=
-        "#id9">1.4&nbsp;&nbsp;&nbsp;Vim</a></h2>
+        "#id10">1.4&nbsp;&nbsp;&nbsp;Vim</a></h2>
 
         <p>Vim e' l'editor di testo preferito dai sistemisti,
         quindi sara' conveniente impostare fin da subito alcune
@@ -811,7 +826,7 @@ e modificare il file di configurazione generale ``/etc/vim/vimrc`` ::
 
       <div class="section" id="vnc">
         <h2><a class="toc-backref" href=
-        "#id10">1.5&nbsp;&nbsp;&nbsp;VNC</a></h2>
+        "#id11">1.5&nbsp;&nbsp;&nbsp;VNC</a></h2>
 
         <p>I Virtual Network Computing (o VNC) sono software di
         controllo remoto e servono per amministrare il proprio
@@ -869,7 +884,7 @@ exit
 
       <div class="section" id="lista-dei-pacchetti-di-base">
         <h2><a class="toc-backref" href=
-        "#id11">1.6&nbsp;&nbsp;&nbsp;Lista dei pacchetti di
+        "#id12">1.6&nbsp;&nbsp;&nbsp;Lista dei pacchetti di
         base</a></h2>
 
         <p>I pacchetti installati generalmente <a class=
@@ -908,7 +923,7 @@ kde-core kdm kde-i18n-it xorg vim less xtightvncviewer
 
       <div class="section" id="apt-configurazione">
         <h2><a class="toc-backref" href=
-        "#id12">1.7&nbsp;&nbsp;&nbsp;Apt configurazione</a></h2>
+        "#id13">1.7&nbsp;&nbsp;&nbsp;Apt configurazione</a></h2>
 
         <p>Vediamo i due file principali di apt:</p>
 
@@ -922,7 +937,7 @@ kde-core kdm kde-i18n-it xorg vim less xtightvncviewer
 
         <div class="section" id="sources-list">
           <h3><a class="toc-backref" href=
-          "#id13">1.7.1&nbsp;&nbsp;&nbsp;sources.list</a></h3>
+          "#id14">1.7.1&nbsp;&nbsp;&nbsp;sources.list</a></h3>
 
           <p>Questo file contiene i sorgenti da cui <em>apt</em>
           preleva i pacchetti da installare tramite <em>dpkg</em>,
@@ -987,7 +1002,7 @@ deb-src http://volatile.debian.org/debian-volatile Lenny/volatile main
 
         <div class="section" id="etc-apt-apt-conf">
           <h3><a class="toc-backref" href=
-          "#id14">1.7.2&nbsp;&nbsp;&nbsp;/etc/apt/apt.conf</a></h3>
+          "#id15">1.7.2&nbsp;&nbsp;&nbsp;/etc/apt/apt.conf</a></h3>
 
           <p>Questo file contiene le opzioni di apt, come ad
           esempio il proxy:</p>
@@ -1005,12 +1020,12 @@ Acquire::http::Proxy "http://10.10.208.254:3128"
 
     <div class="section" id="squid">
       <h1><a class="toc-backref" href=
-      "#id15">2&nbsp;&nbsp;&nbsp;Squid</a></h1>
+      "#id16">2&nbsp;&nbsp;&nbsp;Squid</a></h1>
     </div>
 
     <div class="section" id="apache">
       <h1><a class="toc-backref" href=
-      "#id16">3&nbsp;&nbsp;&nbsp;Apache</a></h1>
+      "#id17">3&nbsp;&nbsp;&nbsp;Apache</a></h1>
 
       <p>Apache HTTP Server, o più comunemente Apache, e' il nome
       dato alla piattaforma server Web modulare più diffusa (ma
@@ -1028,7 +1043,7 @@ Acquire::http::Proxy "http://10.10.208.254:3128"
 
       <div class="section" id="pacchetti-da-installare">
         <h2><a class="toc-backref" href=
-        "#id17">3.1&nbsp;&nbsp;&nbsp;Pacchetti da
+        "#id18">3.1&nbsp;&nbsp;&nbsp;Pacchetti da
         installare::</a></h2>
 
         <blockquote>
@@ -1042,7 +1057,7 @@ Acquire::http::Proxy "http://10.10.208.254:3128"
 
       <div class="section" id="configurazione-di-apache">
         <h2><a class="toc-backref" href=
-        "#id18">3.2&nbsp;&nbsp;&nbsp;Configurazione di
+        "#id19">3.2&nbsp;&nbsp;&nbsp;Configurazione di
         Apache</a></h2>
 
         <p>I file di configurazione di apache si trovano nella
@@ -1101,7 +1116,7 @@ Acquire::http::Proxy "http://10.10.208.254:3128"
 
       <div class="section" id="apache-conf">
         <h2><a class="toc-backref" href=
-        "#id19">3.3&nbsp;&nbsp;&nbsp;apache.conf</a></h2>
+        "#id20">3.3&nbsp;&nbsp;&nbsp;apache.conf</a></h2>
 
         <p>File di configurazione del servizio Apache, contiene le
         impostazioni generiche (ad esempio utilizzo della RAM e
@@ -1158,7 +1173,7 @@ Acquire::http::Proxy "http://10.10.208.254:3128"
 
       <div class="section" id="installazione-di-php">
         <h2><a class="toc-backref" href=
-        "#id20">3.4&nbsp;&nbsp;&nbsp;Installazione di PHP</a></h2>
+        "#id21">3.4&nbsp;&nbsp;&nbsp;Installazione di PHP</a></h2>
 
         <p>Pacchetti da installare: <tt class=
         "docutils literal"><span class="pre">php5</span>
@@ -1166,7 +1181,7 @@ Acquire::http::Proxy "http://10.10.208.254:3128"
 
         <div class="section" id="test-del-modulo-php">
           <h3><a class="toc-backref" href=
-          "#id21">3.4.1&nbsp;&nbsp;&nbsp;Test del modulo
+          "#id22">3.4.1&nbsp;&nbsp;&nbsp;Test del modulo
           php</a></h3>
 
           <p>Creare nella cartella <tt class=
@@ -1196,7 +1211,7 @@ Acquire::http::Proxy "http://10.10.208.254:3128"
         <div class="section" id=
         "installazione-del-supporto-per-mysql">
           <h3><a class="toc-backref" href=
-          "#id22">3.4.2&nbsp;&nbsp;&nbsp;Installazione del supporto
+          "#id23">3.4.2&nbsp;&nbsp;&nbsp;Installazione del supporto
           per Mysql</a></h3>
 
           <p>Installare i pacchetti:</p>
@@ -1213,7 +1228,7 @@ php5-mysql phpmyadmin
 
         <div class="section" id="phpmyadmin">
           <h3><a class="toc-backref" href=
-          "#id23">3.4.3&nbsp;&nbsp;&nbsp;phpmyadmin</a></h3>
+          "#id24">3.4.3&nbsp;&nbsp;&nbsp;phpmyadmin</a></h3>
 
           <p>L'interfaccia web Phpmyadmin non richede
           necessariamente la presenza di un database Mysql locale,
@@ -1238,7 +1253,7 @@ php5-mysql phpmyadmin
         <div class="section" id=
         "installazione-del-supporto-per-postgresql">
           <h3><a class="toc-backref" href=
-          "#id24">3.4.4&nbsp;&nbsp;&nbsp;Installazione del supporto
+          "#id25">3.4.4&nbsp;&nbsp;&nbsp;Installazione del supporto
           per Postgresql</a></h3>
 
           <p>Installare i pacchetti:</p>
@@ -1255,7 +1270,7 @@ php5-pgsql phppgadmin
 
         <div class="section" id="phppgadmin">
           <h3><a class="toc-backref" href=
-          "#id25">3.4.5&nbsp;&nbsp;&nbsp;phppgadmin</a></h3>
+          "#id26">3.4.5&nbsp;&nbsp;&nbsp;phppgadmin</a></h3>
 
           <p>L'interfaccia web Phppgadmin per il database server
           PostgreSQL non richede necessariamente la presenza di un
@@ -1280,7 +1295,7 @@ php5-pgsql phppgadmin
 
       <div class="section" id="virtual-hosts">
         <h2><a class="toc-backref" href=
-        "#id26">3.5&nbsp;&nbsp;&nbsp;Virtual hosts</a></h2>
+        "#id27">3.5&nbsp;&nbsp;&nbsp;Virtual hosts</a></h2>
 
         <blockquote>
           <ul class="simple">
@@ -1321,7 +1336,7 @@ php5-pgsql phppgadmin
 
         <div class="section" id="gestione-dns">
           <h3><a class="toc-backref" href=
-          "#id27">3.5.1&nbsp;&nbsp;&nbsp;Gestione DNS</a></h3>
+          "#id28">3.5.1&nbsp;&nbsp;&nbsp;Gestione DNS</a></h3>
 
           <p>Prima di tutto per poter impostare i virtual hosts
           dovete avere un server DNS che risolva i vostri nomi di
@@ -1404,7 +1419,7 @@ php5-pgsql phppgadmin
 
         <div class="section" id="virtual-host">
           <h3><a class="toc-backref" href=
-          "#id28">3.5.2&nbsp;&nbsp;&nbsp;Virtual host</a></h3>
+          "#id29">3.5.2&nbsp;&nbsp;&nbsp;Virtual host</a></h3>
 
           <p>Esempio di Virtual host:</p>
           <pre class="literal-block">
@@ -1516,7 +1531,7 @@ php5-pgsql phppgadmin
 
       <div class="section" id="negoziazione-accessi">
         <h2><a class="toc-backref" href=
-        "#id29">3.6&nbsp;&nbsp;&nbsp;Negoziazione accessi</a></h2>
+        "#id30">3.6&nbsp;&nbsp;&nbsp;Negoziazione accessi</a></h2>
 
         <p>Tipicamente quando si installa un server web il proprio
         desiderio e' di dare accesso ai materiali disponibili al
@@ -1529,7 +1544,7 @@ php5-pgsql phppgadmin
 
         <div class="section" id="limiti-su-base-ip">
           <h3><a class="toc-backref" href=
-          "#id30">3.6.1&nbsp;&nbsp;&nbsp;Limiti su base ip</a></h3>
+          "#id31">3.6.1&nbsp;&nbsp;&nbsp;Limiti su base ip</a></h3>
 
           <p>La forma piu' semplice di restrizine degli accessi e'
           su base degli indirizzi IP dei client: tipicamente i siti
@@ -1537,8 +1552,10 @@ php5-pgsql phppgadmin
           <pre class="literal-block">
 &lt;VirtualHost *:80 &gt;
        # ...
+       &lt;Directory "/var/www/177.piffa.net"&gt;
        Order allow,deny
        Allow from all
+       &lt;/Directory&gt;
 &lt;/VirtualHost&gt;
 </pre>
 
@@ -1546,9 +1563,11 @@ php5-pgsql phppgadmin
           questo modo:</p>
           <pre class="literal-block">
 &lt;VirtualHost *:80 &gt;
+       &lt;Directory "/var/www/177.piffa.net"&gt;
        Order allow,deny
        Allow from all
        Deny from 192.168.0.1
+       &lt;/Directory&gt;
 &lt;/VirtualHost&gt;
 </pre>
 
@@ -1579,7 +1598,7 @@ php5-pgsql phppgadmin
 
         <div class="section" id="user-authentication">
           <h3><a class="toc-backref" href=
-          "#id31">3.6.2&nbsp;&nbsp;&nbsp;User
+          "#id32">3.6.2&nbsp;&nbsp;&nbsp;User
           Authentication</a></h3>
 
           <p>A volte conviene negoziare gli accessi ad un area di
@@ -1598,9 +1617,81 @@ php5-pgsql phppgadmin
         </div>
       </div>
 
+      <div class="section" id="definire-la-cartella">
+        <h2><a class="toc-backref" href=
+        "#id33">3.7&nbsp;&nbsp;&nbsp;Definire la cartella</a></h2>
+
+        <p>Decidere quale sara' il <em>path</em> della cartella da
+        sottoporre ad autentizazione:(e creiamo la cartella):</p>
+
+        <blockquote>
+          mkdir /var/www/177.piffa.net/privata
+        </blockquote>
+      </div>
+
+      <div class="section" id=
+      "creazione-del-database-delle-passwords">
+        <h2><a class="toc-backref" href=
+        "#id34">3.8&nbsp;&nbsp;&nbsp;Creazione del database delle
+        passwords</a></h2>
+
+        <p>Un modo semplice per gestire una database di <em>user-id
+        / passwords</em> e' appoggiarsi all'utility <tt class=
+        "docutils literal"><span class="pre">htpasswd</span></tt>
+        di Apache. Questa crea un file in cui un <em>crypt</em>
+        delle password viene associato agli utenti.</p>
+
+        <p>Si dovra' decidere dove tenere questo file, la cosa
+        importante e' che non sia disopnibile nel sito web, non
+        deve essere scaricabile dai visitatori. Deve essere cioe'
+        all'esterno della <em>DocumentRoot</em>: un buon posto
+        potrebbe essere la /home dell'utente:</p>
+        <pre class="literal-block">
+htpasswd -c /home/utente/passwords luca
+</pre>
+
+        <p>Creiamo (con il <em>flag</em> <tt class=
+        "docutils literal"><span class="pre">-c</span></tt>) il
+        file <tt class="docutils literal"><span class=
+        "pre">/home/utente/passwords</span></tt> con l'utente
+        <tt class="docutils literal"><span class=
+        "pre">luca</span></tt>.</p>
+      </div>
+
+      <div class="section" id="id3">
+        <h2><a class="toc-backref" href=
+        "#id35">3.9&nbsp;&nbsp;&nbsp;Configurazione di
+        Apache</a></h2>
+
+        <p>Ora possiamo passare alla ocnfigurazione vera e propria
+        di Apache, ma con una novita': andremo a inserire la voce
+        in un .htaccess.</p>
+
+        <p>/var/www/177.piffa.net/privata/.htaccess</p>
+        <pre class="literal-block">
+# Questo file viene incluso
+# nella configurazione del sito web
+# Messaggio visualizzato al prompt per l'autenticazione
+AuthName "Area privata soggetta ad autentizazione"
+# tipo di autenticazione da usarsi
+AuthType Basic
+# File generato precedentemente con htpasswd
+AuthUserFile  /home/utente/passwords
+
+# Negoziazione degli accessi
+# valid users permette l'accesso agli utenti specificati
+# nel file generato da htpasswd
+require valid-user
+</pre>
+
+        <p>Si noti che non e' necessario fare ripartire Apache per
+        onorare i cambiamenti (un utente non avrebbe la
+        possibilita' di farlo!).</p>
+      </div>
+
       <div class="section" id="cavets">
         <h2><a class="toc-backref" href=
-        "#id32">3.7&nbsp;&nbsp;&nbsp;Cavets</a></h2>
+        "#id36">3.10&nbsp;&nbsp;&nbsp;Cavets</a></h2>
 
         <p>Problemi di cache:</p>
 
@@ -1625,7 +1716,7 @@ php5-pgsql phppgadmin
 
     <div class="section" id="domain-name-system">
       <h1><a class="toc-backref" href=
-      "#id33">4&nbsp;&nbsp;&nbsp;Domain Name System</a></h1>
+      "#id37">4&nbsp;&nbsp;&nbsp;Domain Name System</a></h1>
 
       <p>Domain Name System (spesso indicato con DNS) è un
       servizio utilizzato per la risoluzione di nomi di host in
@@ -1650,7 +1741,7 @@ php5-pgsql phppgadmin
 
       <div class="section" id="nomi-di-dominio">
         <h2><a class="toc-backref" href=
-        "#id34">4.1&nbsp;&nbsp;&nbsp;Nomi di dominio</a></h2>
+        "#id38">4.1&nbsp;&nbsp;&nbsp;Nomi di dominio</a></h2>
 
         <p>Un nome a dominio è costituito da una serie di stringhe
         separate da punti, ad esempio it.wikipedia.org. A
@@ -1672,7 +1763,7 @@ php5-pgsql phppgadmin
 
       <div class="section" id="tipologie-di-record">
         <h2><a class="toc-backref" href=
-        "#id35">4.2&nbsp;&nbsp;&nbsp;Tipologie di record</a></h2>
+        "#id39">4.2&nbsp;&nbsp;&nbsp;Tipologie di record</a></h2>
 
         <p>Ad un nome DNS possono corrispondere diversi tipi di
         informazioni. Per questo motivo, esistono diversi tipi di
@@ -1727,7 +1818,7 @@ php5-pgsql phppgadmin
 
       <div class="section" id="utilizzo">
         <h2><a class="toc-backref" href=
-        "#id36">4.3&nbsp;&nbsp;&nbsp;Utilizzo</a></h2>
+        "#id40">4.3&nbsp;&nbsp;&nbsp;Utilizzo</a></h2>
 
         <p>I computer vengono identificati in rete grazie agli
         indirizzi <em>IP</em>, questi pero' non sono comodi per gli
@@ -1744,7 +1835,7 @@ PING www.l.google.com (74.125.43.104) 56(84) bytes of data.
 
       <div class="section" id="risoluzione-dei-nomi-di-dominio">
         <h2><a class="toc-backref" href=
-        "#id37">4.4&nbsp;&nbsp;&nbsp;Risoluzione dei nomi di
+        "#id41">4.4&nbsp;&nbsp;&nbsp;Risoluzione dei nomi di
         dominio</a></h2>
 
         <p>Ci sono vari strumenti per interrogare i server DNS e
@@ -1809,7 +1900,7 @@ ns4.mydomain.com.       96208   IN      A       63.251.83.74
 
       <div class="section" id="dig">
         <h2><a class="toc-backref" href=
-        "#id38">4.5&nbsp;&nbsp;&nbsp;Dig</a></h2>
+        "#id42">4.5&nbsp;&nbsp;&nbsp;Dig</a></h2>
 
         <p>Vediamo alcune opzioni utili nell'utilizzo di <tt class=
         "docutils literal"><span class="pre">dig</span></tt> per
@@ -1886,7 +1977,7 @@ l.google.com.           80856   IN      NS      g.l.google.com.
 
     <div class="section" id="dnsmasq">
       <h1><a class="toc-backref" href=
-      "#id39">5&nbsp;&nbsp;&nbsp;DNSmasq</a></h1>
+      "#id43">5&nbsp;&nbsp;&nbsp;DNSmasq</a></h1>
 
       <p>Dnsmasq puo' svolgere le funzioni di un DNS cache /
       forwarder e un server DHCP caratterizzato dalla facilita' di
@@ -1925,7 +2016,7 @@ l.google.com.           80856   IN      NS      g.l.google.com.
 
     <div class="section" id="samba">
       <h1><a class="toc-backref" href=
-      "#id40">6&nbsp;&nbsp;&nbsp;Samba</a></h1>
+      "#id44">6&nbsp;&nbsp;&nbsp;Samba</a></h1>
 
       <p>Samba e' un progetto libero che fornisce servizi di
       condivisione di file e stampanti a client SMB/CIFS.</p>
@@ -1946,11 +2037,11 @@ l.google.com.           80856   IN      NS      g.l.google.com.
 
       <div class="section" id="pacchetti">
         <h2><a class="toc-backref" href=
-        "#id41">6.1&nbsp;&nbsp;&nbsp;Pacchetti</a></h2>
+        "#id45">6.1&nbsp;&nbsp;&nbsp;Pacchetti</a></h2>
 
         <p>Pacchetti da installare per utilizzare Samba in
-        modalita' client <a class="footnote-reference" href="#id4"
-        id="id3" name="id3">[2]</a></p>
+        modalita' client <a class="footnote-reference" href="#id5"
+        id="id4" name="id4">[2]</a></p>
         <pre class="literal-block">
 samba-client
 </pre>
@@ -1961,7 +2052,7 @@ samba-client
 samba smbfs smbclient
 </pre>
 
-        <table class="docutils footnote" frame="void" id="id4"
+        <table class="docutils footnote" frame="void" id="id5"
         rules="none">
           <colgroup>
             <col class="label">
@@ -1971,7 +2062,7 @@ samba smbfs smbclient
           <tbody valign="top">
             <tr>
               <td class="label"><a class="fn-backref" href=
-              "#id3">[2]</a></td>
+              "#id4">[2]</a></td>
 
               <td>Anche se nato per i sistemi Windows, Samba puo'
               essere usato anche per montare cartelle sotto
@@ -1999,7 +2090,7 @@ dpkg-reconfigure samba-common
 
       <div class="section" id="passwords-e-autenticazione">
         <h2><a class="toc-backref" href=
-        "#id42">6.2&nbsp;&nbsp;&nbsp;Passwords e
+        "#id46">6.2&nbsp;&nbsp;&nbsp;Passwords e
         autenticazione</a></h2>
 
         <p>Per poter configurare Samba in modo che usi un sistema
@@ -2060,7 +2151,7 @@ dpkg-reconfigure samba-common
 
       <div class="section" id="creazione-utenti">
         <h2><a class="toc-backref" href=
-        "#id43">6.3&nbsp;&nbsp;&nbsp;Creazione Utenti</a></h2>
+        "#id47">6.3&nbsp;&nbsp;&nbsp;Creazione Utenti</a></h2>
 
         <p>Creiamo per primo l'utente sotto GNU/Linux, facendo
         attenzione a <em>non dargli una shell di sistema</em>. Gli
@@ -2097,7 +2188,7 @@ smbpasswd  sambo
 
       <div class="section" id="creare-la-condivisione">
         <h2><a class="toc-backref" href=
-        "#id44">6.4&nbsp;&nbsp;&nbsp;Creare la
+        "#id48">6.4&nbsp;&nbsp;&nbsp;Creare la
         condivisione</a></h2>
 
         <p>La condivisione altro non e' che una cartella sul server
@@ -2124,7 +2215,7 @@ smbpasswd  sambo
         <div class="section" id=
         "sicurezza-permessi-di-esecuzione-sul-server">
           <h3><a class="toc-backref" href=
-          "#id45">6.4.1&nbsp;&nbsp;&nbsp;Sicurezza: permessi di
+          "#id49">6.4.1&nbsp;&nbsp;&nbsp;Sicurezza: permessi di
           esecuzione sul server</a></h3>
 
           <p>Bisognerebbe notare sul server i permessi di
@@ -2154,7 +2245,7 @@ smbpasswd  sambo
       <div class="section" id=
       "configurazione-dell-applicativo-samba-vero-e-proprio">
         <h2><a class="toc-backref" href=
-        "#id46">6.5&nbsp;&nbsp;&nbsp;Configurazione
+        "#id50">6.5&nbsp;&nbsp;&nbsp;Configurazione
         dell'applicativo Samba vero e proprio.</a></h2>
 
         <p>Avendo preparato gli utenti (ancora una volta: non si
@@ -2194,7 +2285,7 @@ smbpasswd  sambo
 
       <div class="section" id="testare-il-servizio">
         <h2><a class="toc-backref" href=
-        "#id47">6.6&nbsp;&nbsp;&nbsp;Testare il Servizio</a></h2>
+        "#id51">6.6&nbsp;&nbsp;&nbsp;Testare il Servizio</a></h2>
 
         <p>Come testare il servizio</p>
 
@@ -2234,7 +2325,7 @@ mount -t smbfs //localhost/sambo_share /mnt/sambo_mount/ --verbose -o user=sambo
 
     <div class="section" id="note">
       <h1><a class="toc-backref" href=
-      "#id48">7&nbsp;&nbsp;&nbsp;NOTE</a></h1>
+      "#id52">7&nbsp;&nbsp;&nbsp;NOTE</a></h1>
 
       <ul class="simple">
         <li>controllare apache</li>
index 3164c07cee65308a29921059ccc1820eb2c18e4e..694de6614c7a53525e73a28fa61d3b6e16191daa 100644 (file)
@@ -458,16 +458,20 @@ La forma piu' semplice di restrizine degli accessi e' su base degli indirizzi IP
 
         <VirtualHost *:80 >
                # ...
+               <Directory "/var/www/177.piffa.net">
                Order allow,deny
                Allow from all
+               </Directory>
         </VirtualHost>
 
 Potremmo negare l'accesso a uno o piu' indirizzi IP in questo modo::
 
         <VirtualHost *:80 >
+               <Directory "/var/www/177.piffa.net">
                Order allow,deny
                Allow from all
                Deny from 192.168.0.1
+               </Directory>
         </VirtualHost>
 
 Ora l'IP 192.168.0.1 non potra' piu' accedere ai materiali dell'intero sito virtuale, oppure potremmo lavorare su una sola directory::
@@ -490,6 +494,47 @@ A volte conviene negoziare gli accessi ad un area di un sito tramite autenticazi
 
 link: http://www.apacheweek.com/features/userauth
 
+Definire la cartella
+-----------------------
+
+Decidere quale sara' il *path* della cartella da sottoporre ad autentizazione:(e creiamo la cartella):
+
+       mkdir   /var/www/177.piffa.net/privata
+
+Creazione del database delle passwords
+---------------------------------------
+
+Un modo semplice per gestire una database di *user-id / passwords* e' appoggiarsi all'utility ``htpasswd`` di Apache. Questa crea  un file in cui un *crypt* delle password viene associato agli utenti. 
+
+Si dovra' decidere dove tenere questo file, la cosa importante e' che non sia disopnibile nel sito web, non deve essere scaricabile dai visitatori. Deve essere cioe' all'esterno della *DocumentRoot*: un buon posto potrebbe essere la /home dell'utente::
+
+       htpasswd -c /home/utente/passwords luca
+       
+Creiamo (con il *flag* ``-c``) il file ``/home/utente/passwords`` con l'utente ``luca``. 
+
+Configurazione di Apache
+-------------------------
+
+Ora possiamo passare alla ocnfigurazione vera e propria di Apache, ma con una novita': andremo a inserire la voce in un .htaccess.
+
+/var/www/177.piffa.net/privata/.htaccess ::
+
+       # Questo file viene incluso
+       # nella configurazione del sito web
+       # Messaggio visualizzato al prompt per l'autenticazione
+       AuthName "Area privata soggetta ad autentizazione"
+       # tipo di autenticazione da usarsi
+       AuthType Basic
+       # File generato precedentemente con htpasswd
+       AuthUserFile  /home/utente/passwords
+       
+       # Negoziazione degli accessi
+       # valid users permette l'accesso agli utenti specificati
+       # nel file generato da htpasswd
+       require valid-user
+
+Si noti che non e' necessario fare ripartire Apache per onorare i cambiamenti (un utente non avrebbe la possibilita' di farlo!).
+
 
 Cavets
 -----------