Преглед на файлове

Complements Apache2 documentation

Adrien Panay преди 7 години
родител
ревизия
ef159c5369
променени са 1 файла, в които са добавени 24 реда и са изтрити 15 реда
  1. 24 15
      doc/apache.md

+ 24 - 15
doc/apache.md Целия файл

@@ -6,42 +6,51 @@ Install `Apache` server and its [`WSGI` module](https://github.com/GrahamDumplet
6 6
 
7 7
     sudo apt install apache2 libapache2-mod-wsgi-py3
8 8
 
9
-Load `Apache` http proxy module:
9
+### Configuration ###
10 10
 
11
-    sudo a2enmod proxy
12
-    sudo a2enmod proxy_http
11
+In `tracim/development.ini`, edit the base URL prefix of radicale client line from:
13 12
 
14
-### Configuration ###
13
+    # radicale.client.base_url.prefix = /
14
+
15
+To:
16
+
17
+    radicale.client.base_url.prefix = /caldav
15 18
 
16 19
 Create a file named `/etc/apache2/sites-available/tracim.conf` containing:
17 20
 
18 21
     <VirtualHost *:80>
19
-        ServerName tracim.mycompany.com
22
+        ServerName tracim
20 23
 
21
-        WSGIDaemonProcess tracim.mycompany.com user=www-data group=www-data threads=4 python-home=/var/www/tracim/tg2env python-path=/var/www/tracim/tracim lang='C.UTF-8' locale='C.UTF-8'
22
-        WSGIProcessGroup tracim.mycompany.com
24
+        ProxyPreserveHost On
25
+        ProxyRequests Off
23 26
 
24
-        WSGIScriptAlias / /var/www/tracim/tracim/app.wsgi process-group=tracim.mycompany.com
27
+        ProxyPass "/caldav" "http://127.0.0.1"
28
+        ProxyPassReverse "/caldav" "http://127.0.0.1"
25 29
 
30
+        # ProxyPass "/webdav" "http://127.0.0.1"
31
+        # ProxyPassReverse "/webdav" "http://127.0.0.1"
32
+
33
+        WSGIDaemonProcess tracim user=www-data group=www-data threads=4 python-home=/var/www/tracim/tg2env python-path=/var/www/tracim/tracim lang='C.UTF-8' locale='C.UTF-8'
34
+        WSGIProcessGroup tracim
35
+        WSGIScriptAlias / /var/www/tracim/tracim/app.wsgi process-group=tracim
26 36
         <Directory "/var/www/tracim/tracim">
27 37
             <Files "app.wsgi">
28 38
                 Require all granted
29 39
             </Files>
30 40
         </Directory>
31 41
 
32
-        #Serve static files directly without TurboGears
42
+        # Serve static files directly
33 43
         Alias /assets          /var/www/tracim/tracim/tracim/public/assets
34 44
         Alias /_caldavzap      /var/www/tracim/tracim/tracim/public/_caldavzap
35
-        # Alias /calendar_config /var/www/tracim/tracim/tracim/public/ ?????????
36 45
         Alias /favicon.ico     /var/www/tracim/tracim/tracim/public/favicon.ico
37
-
38
-        CustomLog ${APACHE_LOG_DIR}/tracim_access_log combined
39
-        ErrorLog ${APACHE_LOG_DIR}/tracim_error_log
40
-        LogLevel info
46
+        <Directory "/var/www/tracim/tracim/tracim/public">
47
+            Require all granted
48
+        </Directory>
41 49
     </VirtualHost>
42 50
 
43
-Enable this site configuration file:
51
+Load needed proxy modules and enable this site configuration file:
44 52
 
53
+    sudo a2enmod proxy proxy_http
45 54
     sudo a2ensite tracim.conf
46 55
 
47 56
 Reload `Apache` configuration: