aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorclyhtsuriva <clyhtsuriva@gmail.com>2020-03-29 20:41:49 +0200
committerclyhtsuriva <clyhtsuriva@gmail.com>2020-03-29 20:41:49 +0200
commit4378405eea982cb3a42584d95767b5003675f611 (patch)
tree5604b7f0bf68b358839c35fb5b4ae8d2415bb5c9 /www
parenta6e0225c9e22d76fae9493008cad8510d94905e9 (diff)
debugging and apache help
Diffstat (limited to 'www')
-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