diff --git a/conf/nginx.conf b/conf/nginx.conf index b0510c7..ab36d3b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -10,8 +10,9 @@ location __PATH__/ { } index index.php; + if (!-e $request_filename) { - rewrite ^__PATH__/(.+)$ __PATH__/index.php?q=$1 last; + rewrite ^__PATH__/(.*)$ __PATH__/index.php?q=$1 last; } try_files $uri $uri/ index.php; diff --git a/conf/settings.php b/conf/settings.php index 90e118e..d1a9230 100644 --- a/conf/settings.php +++ b/conf/settings.php @@ -13,7 +13,8 @@ * https://api.backdropcms.org/database-configuration */ $database = 'mysql://__DBNAME__:__DBPWD__@localhost/__DBNAME__'; - $database_prefix = ''; + $database_prefix = '__DBNAME___'; + $database_charset = 'utf8mb4'; /** * Site configuration files location. diff --git a/scripts/install b/scripts/install index 047ccde..9906bb0 100644 --- a/scripts/install +++ b/scripts/install @@ -117,8 +117,8 @@ ynh_store_file_checksum --file="$final_path/settings.php" #================================================= # Set permissions to app files -chown -R root: $final_path -chown -R $app:www-data $final_path/files +chown -R $app:www-data $final_path +#chown -R $app:www-data $final_path/files chmod -R 770 $final_path/files #=================================================