diff options
Diffstat (limited to '')
| -rwxr-xr-x | www/apache-modified/apache2.conf (renamed from web/apache-modified/apache2.conf) | 7 | ||||
| -rw-r--r-- | www/apache-modified/help.txt | 13 |
2 files changed, 18 insertions, 2 deletions
diff --git a/web/apache-modified/apache2.conf b/www/apache-modified/apache2.conf index 96c1601..3bdb180 100755 --- a/web/apache-modified/apache2.conf +++ b/www/apache-modified/apache2.conf @@ -123,7 +123,7 @@ Group ${APACHE_RUN_GROUP} # each client request will result in AT LEAST one lookup request to the # nameserver. # -HostnameLookups On +HostnameLookups Off # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> @@ -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/> @@ -226,5 +229,5 @@ IncludeOptional sites-enabled/*.conf # vim: syntax=apache ts=4 sw=4 sts=4 sr noet -ErrorDocument 404 /404.html +#ErrorDocument 404 /404.html 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 ... |
