Commit aecb7e86 authored by Romain Loth's avatar Romain Loth

remove autoindex option for /static + fix minor typos

parent aa87f461
*.sqlite
*.db
*.pyc
archives_local/*
logs/
logs/services.log
__pycache__/
......@@ -9,9 +9,9 @@ from traceback import format_tb
from .converter import CountryConverter
if __package__ == "services.db_to_tina_api":
from services.tools import mlog
from services.tools import mlog, restparse
else:
from tools import mlog
from tools import mlog, restparse
whoswhofilters_to_sqlnames = {
......@@ -126,7 +126,7 @@ class MyExtractor:
filter_dict = restparse(queryargs)
# debug
# mlog("DEBUG", "filter: REST query is", filter_dict)
mlog("DEBUG", "filter: REST query is", filter_dict)
if "query" in filter_dict and filter_dict["query"] == "*":
# query is "*" <=> all scholars
......
......@@ -31,7 +31,7 @@ server {
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME /comex2/$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /comex2$fastcgi_script_name;
}
# :80/services => subapp via 0.0.0.0:9090/services
......@@ -52,6 +52,6 @@ server {
# faster static serving
location /static {
alias /comex2/static/;
autoindex on;
# autoindex on;
}
}
<?php
include("php_library/parametres.php");
echo "<body><p>behold the final mysql parameters<ul><li>dsn: '$dsn',</li> <li>user: '$user',</li> <li>pass: '$pass',</li> </ul></p></body>"
echo "<body><p>behold the final mysql parameters<ul><li>dsn: '$dsn',</li> <li>user: '$user',</li> <li>pass: '$pass',</li> </ul></p></body>";
var_dump($_ENV)
var_dump($_ENV);
phpinfo()
phpinfo();
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment