Bonsoir,
je souhaite mettre en place piwigo comme galerie et piwik pour les stats d'accès a cette galerie
je tourne en rond car je ne sais pas vraiment comment configurer mes fichiers rutorrent.conf et mon fichier piwigo. conf .
j'obtiens qu'une erreur 502, signe d'un problème dans ma conf de base ( rutorrent.conf).
je suis partie de l'installation automatique de rutorrent auquel j'ai adjoins sans trop de difficulté nextcloud.
voici mon ruttorent.
at /etc/nginx/sites-enabled/rutorrent.conf
server {
listen 80 default_server;
listen 443 default_server ssl http2;
server_name _;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
include /etc/nginx/conf.d/ciphers.conf;
access_log /var/log/nginx/rutorrent-access.log combined;
error_log /var/log/nginx/rutorrent-error.log error;
error_page 500 502 503 504 /50x.html;
location = /50x.html { root /usr/share/nginx/html; }
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
location = /favicon.ico {
access_log off;
log_not_found off;
}
## début config accueil serveur ##
location ^~ / {
root /var/www/base;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
satisfy any;
allow all;
}
## fin config accueil serveur ##
## début config proxy ##
location ^~ /proxy {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config proxy ##
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
## fin config rutorrent ##
## début config nextcloud ##
location ^~ /nextcloud {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /nextcloud/conf/ {
deny all;
}
location ^~ /nextcloud/share/ {
deny all;
}
## fin config owncloud ##
## début config piwigo ##
location ^~ /piwigo {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
##
## location @rewrite {
## ;
## }
##
## location ~ /\.ht {
## deny all;
## }
## }
##
## location ^~ /piwigo/conf/ {
## deny all;
## }
##
## location ^~ /piwigo/share/ {
## deny all;
}
## fin config piwigo ##
## début config munin ##
location ^~ /graph {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
location ^~ /graph/img {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
error_log /dev/null crit;
}
location ^~ /monitoring {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config munin ##
## début config seedbox-manager ##
location ^~ /seedbox-manager {
alias /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php-manager.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config seedbox-manager ##
## config utilisateurs ##
location /CHRISTR87 {
include scgi_params;
scgi_pass 127.0.0.1:5001; #ou socket : unix:/media/data/users/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_christr87";
}
location /PAULUX {
include scgi_params;
scgi_pass 127.0.0.1:5003; #ou socket : unix:/media/data/users/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_paulux";
}
}
mon fichier piwigo.
cat /etc/nginx/sites-enabled/piwigo.conf
server {
listen 80;
server_name photo.lcrprod.fr;
# enforce https
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name photo.lcrprod.fr;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
#LOGS
access_log /var/log/nginx/piwigo-access.log combined;
error_log /var/log/nginx/piwigo-error.log error;
# Path to the root of your installation
root /var/www/piwigo/;
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# set max upload size
client_max_body_size 51M;
fastcgi_buffers 64 4K;
# Disable gzip to avoid the removal of the ETag header
gzip on;
## location ~/\ {
## deny all;
## access_log off;
## log_not_found off;
## }
location @rewrite {
rewrite ^/piwigo/picture((/|$).*)$ /piwigo/picture.php$1 last;
rewrite ^/piwigo/index((/|$).*)$ /piwigo/index.php$1 last;
# The following is needed for batch operations which use i.php
rewrite ^/piwigo/i((/|$).*)$ /piwigo/i.php$1 last;
}
location /piwigo {
index index.php;
try_files $uri $uri/ @rewrite;
}
location ~ ^(?<script_name>.+?\.php)(?<path_info>/.*)?$ {
try_files $script_name = 404;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_param PATH_INFO $path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Le nom de domaine est fictif, il est basser sur mon email.
Piwik viendra plus tard ...
qui maitrise bien nginx pour m'expliquer oû je fais grosse bétisse.
je vous remercie par avance de l'aider que vous pourrez m'apporter.