aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwww/apache-modified/apache2.conf3
-rw-r--r--www/apache-modified/help.txt13
-rwxr-xr-xwww/html/.htaccess2
3 files changed, 17 insertions, 1 deletions
diff --git a/www/apache-modified/apache2.conf b/www/apache-modified/apache2.conf
index c1b9b89..3bdb180 100755
--- a/www/apache-modified/apache2.conf
+++ b/www/apache-modified/apache2.conf
@@ -171,6 +171,9 @@ Include ports.conf
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
+ AddHandler mod_python .py
+ PythonHandler mod_python.publisher
+ PythonDebug On
</Directory>
#<Directory /srv/>
diff --git a/www/apache-modified/help.txt b/www/apache-modified/help.txt
new file mode 100644
index 0000000..80b10ff
--- /dev/null
+++ b/www/apache-modified/help.txt
@@ -0,0 +1,13 @@
+#pour felix
+
+#first, you have to install apache2 (server), mod_python (to build html via python) and python-psycopg2 (to use psql) :
+apt install apache2 libapache2-mod-python python-psycopg2
+
+#replace the actual /var/www by our ATS-Project/www
+cp -r /root/ATS-Project/www /var/
+
+#give the x rights on the .py files
+chmod +x /var/www/html *.py
+
+#replace the actual /etc/apache2/apache2.conf by our ATS-Project/www/apache-modified/apache2.conf
+cp -r ...
diff --git a/www/html/.htaccess b/www/html/.htaccess
index ff2ab4a..d074f91 100755
--- a/www/html/.htaccess
+++ b/www/html/.htaccess
@@ -1,5 +1,5 @@
AuthType Basic
AuthName "restricted area"
-AuthUserFile /var/www/html/ATS-Project/web/.htpasswd
+AuthUserFile /var/www/.htpasswd
require valid-user
DirectoryIndex index.py