Implement some best practice and mysql example

This commit is contained in:
mbugeia
2015-10-27 16:03:21 +01:00
parent 3b0b1bb962
commit 5bccfd3267
7 changed files with 68 additions and 13 deletions

View File

@@ -3,6 +3,11 @@ location YNH_WWW_PATH {
# Path to source
alias YNH_WWW_ALIAS ;
# rewrite all http request to https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
# Example PHP configuration
index index.php;
@@ -22,8 +27,9 @@ location YNH_WWW_PATH {
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
# Include SSOWAT user panel.