doc:appunti:linux:sa:davical
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:davical [2018/11/11 20:12] – [Calendario DAViCal] niccolo | doc:appunti:linux:sa:davical [2024/11/06 16:19] (current) – [Sicurezza accesso PostgreSQL] niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Server DAViCal per calendario  | + | ====== Server DAViCal per calendari  | 
| Nella gestione di calendari condivisi sembra che l' | Nella gestione di calendari condivisi sembra che l' | ||
| Line 28: | Line 28: | ||
| Al termine viene stampata la password di **admin** (generata automaticamente) necessaria per accedere all' | Al termine viene stampata la password di **admin** (generata automaticamente) necessaria per accedere all' | ||
| - | Per rendere accessibili le pagine web di amministrazione è sufficiente un link simbolico: | + | Per rendere accessibili le pagine web di amministrazione è sufficiente un link simbolico  | 
| < | < | ||
| Line 34: | Line 34: | ||
| </ | </ | ||
| - | Nelle impostazioni  | + | Si consiglia  | 
| < | < | ||
| - | # DAViCal settings. | + | < | 
| - |      | + | DirectoryIndex index.php | 
| - |      | + |      | 
| - |          | + | Require all granted | 
| - | Order allow,deny | + | </Directory> | 
| - | Allow from all | + | |
| - |      | + | < | 
| - |      | + | SSLEngine on | 
| - |      | + | ServerName dav.site.org | 
| - |      | + |     SSLCertificateFile  | 
| - |     #php_value error_reporting "E_ALL & ~E_NOTICE" | + |     SSLCertificateKeyFile  | 
| - |      | + |      | 
| + | ServerAdmin postmaster@site.org | ||
| + |     ErrorLog ${APACHE_LOG_DIR}/ | ||
| + |     CustomLog ${APACHE_LOG_DIR}/ | ||
| + |     Alias /dav / | ||
| + |      | ||
| + | # PT is important if you are using an alias, it implies L | ||
| + |     # Redirect / | ||
| + |      | ||
| + |      | ||
| + |     RewriteRule ^/principals/ | ||
| + |      | ||
| + |      | ||
| + |     RewriteRule ^/ | ||
| + | # Redirect / requests to web login page | ||
| + |      | ||
| + | </ | ||
| </ | </ | ||
| Line 54: | Line 70: | ||
| <code php> | <code php> | ||
| - |   $c-> | + |   $c-> | 
| - |   $c-> | + |   $c-> | 
| - |   $c-> | + |   $c-> | 
| </ | </ | ||
| Line 66: | Line 82: | ||
| local    | local    | ||
| local    | local    | ||
| + | </ | ||
| + | |||
| + | La connessione ti tipo **local** significa tramite //Unix domain socket//, che è utilizzata come impostazione predefinita dal codice PHP di Davical. In alternativa si può approfittare della configurazione predefinita di PostgreSQL che consente l' | ||
| + | |||
| + | < | ||
| + | host    all    all    127.0.0.1/ | ||
| </ | </ | ||
| Line 75: | Line 97: | ||
| </ | </ | ||
| - | In ''/ | + | In ''/ | 
| <code php> | <code php> | ||
| - | $c-> | + | $c-> | 
| </ | </ | ||
| - | e si protegge opportunamente  | + | visto che il file contiene una password sensibile, lo si protegge opportunamente: | 
| < | < | ||
| Line 124: | Line 146: | ||
| < | < | ||
| - | davical=#  | + | SELECT user_no, dav_name, is_calendar, | 
|   |   | ||
| ---------+---------------------------------+-------------+--------------- | ---------+---------------------------------+-------------+--------------- | ||
| Line 131: | Line 153: | ||
| </ | </ | ||
| - | Per ogni oggetto creato  | + | Per ogni oggetto creato  | 
| < | < | ||
| - | SELECT  | + | SELECT  | 
| - |  user_no  | + |      | 
| - | ---------+-------------+--------+--------------- | + |  dav_id  | 
| - |      | + | --------+-------------+--------------- | 
| - |      | + |    2322 | VEVENT  | 
| + |     | ||
| + |    2324 | VEVENT  | ||
| + |     | ||
| + |    2326 | VEVENT  | ||
| + |    2327 | VEVENT  | ||
| </ | </ | ||
doc/appunti/linux/sa/davical.1541963554.txt.gz · Last modified:  by niccolo
                
                