summaryrefslogtreecommitdiffstats
path: root/README.txt
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2020-03-12 17:40:03 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2020-03-12 17:40:03 +0000
commit0e75a9163b1b85b968a7992b71dffbf35dab78c4 (patch)
treec4f169666347ec051ef5d7bc8ffdc81625d6ad45 /README.txt
parent59633d94f57cd35801916c25020a1d03d47703f4 (diff)
downloadtroggle-0e75a9163b1b85b968a7992b71dffbf35dab78c4.tar.gz
troggle-0e75a9163b1b85b968a7992b71dffbf35dab78c4.tar.bz2
troggle-0e75a9163b1b85b968a7992b71dffbf35dab78c4.zip
Documenting use of apache
Diffstat (limited to 'README.txt')
-rw-r--r--README.txt27
1 files changed, 26 insertions, 1 deletions
diff --git a/README.txt b/README.txt
index ba68681..57f5b6a 100644
--- a/README.txt
+++ b/README.txt
@@ -53,7 +53,32 @@ folk/folk.csv table - a year doesn't exist until that is done.
Running a Troggle server
------------------------
-For high volume use, Troggle should be run using a web server like apache. However, a quick way to get started is to use the development server built into Django.
+For high volume use, Troggle should be run using a web server like apache. However, a quick way to get started is to use the development server built into Django. This is limited though: directory
+redirection needs apache.
To do this, run "python manage.py runserver" from the troggle directory.
+
+Running a Troggle server with Apache
+------------------------------------
+Troggle also needs these aliases to be configured. These are set in
+/home/expo/config/apache/expo.conf
+on the expo server.
+
+At least these need setting:
+DocumentRoot /home/expo/expoweb
+WSGIScriptAlias / /home/expo/troggle/wsgi.py
+Alias /expofiles /home/expo/expofiles
+Alias /photos /home/expo/webphotos
+Alias /map /home/expo/expoweb/map
+Alias /javascript /usr/share/javascript
+Alias /static/ /home/expo/static/
+ScriptAlias /repositories /home/expo/config/apache/services/hgweb/hgweb.cgi
+
+(The last is just for mercurial which will be remoived during 2020).
+
+Unlike the "runserver" method, apache requires a restart before it will use
+any changed files:
+
+apache2ctl stop
+apache2ctl start