Vendredi 23 novembre 2018

Cops

Configuration ** /var/www/cops/config_local.php**

$config['calibre_directory'] = '/media/yanplus/BiblioCalibre/';

/etc/nginx/conf.d/yanspm.com.d/cops.conf pour ajouer fastcgi_param SCRIPT_FILENAME $request_filename;

location /cops {
    alias /var/www/cops/;
	auth_pam           "closed site";
	auth_pam_service_name "nginx";
       index index.php;
       try_files $uri $uri/ index.php;
       location ~ [^/]\.php(/|$) {
           fastcgi_split_path_info ^(.+?\.php)(/.*)$;
           fastcgi_pass unix:/var/run/php5-fpm.sock;
           fastcgi_index index.php;
           include fastcgi_params;
           fastcgi_param   REMOTE_USER   $remote_user;
           fastcgi_param  PATH_INFO $fastcgi_path_info;
           fastcgi_param SCRIPT_FILENAME $request_filename;
       }
}

Relancer le service service nginx restart
Accès https://yanspm.com/cops