Maintenant ça marche mais y'a des petits problèmes... Mon nom de domaine ne répond plus... Je dois voir ce qui se passe. Mais quand j'utilise directement mon IP dans la barre d'adresse, ça marche, ça affiche mon Wordpress (sans CSS...) Rutorrent, PhpMyAdmin, Seedbox Manager... Mais quand je mets mon reverse Kimsufi, il m'affiche Owncloud.... (j'avais installer Owncloud juste avant de mettre le FastCGI)
Franchement je pense qu'il a un fouillis pas possible sur mon serveur
Voilà les fichiers de configuration actuel :
==>
/etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /var/run/nginx.pid;
events { worker_connections 1024; }
http {
fastcgi_cache_path /usr/share/nginx/cache levels=1:2 keys_zone=mycache:10m inactive=1h max_size=256m;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log combined;
error_log /var/log/nginx/error.log error;
sendfile on;
keepalive_timeout 20;
keepalive_disable msie6;
keepalive_requests 100;
tcp_nopush on;
tcp_nodelay off;
server_tokens off;
gzip on;
gzip_buffers 16 8k;
gzip_comp_level 5;
gzip_disable "msie6";
gzip_min_length 20;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_vary on;
include /etc/nginx/sites-enabled/*.conf;
client_max_body_size 100m;
}
==>
/etc/nginx/sites-enabled/rutorrent.conf
server {
listen 80 default_server;
server_name _;
rewrite ^ https://MONADRESSEIP$request_uri? permanent;
}
server {
listen 443 ssl;
server_name MONADRESSEIP;
charset utf-8;
index index.html index.php;
client_max_body_size 20G;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
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 CGI##
location ~ \.php$ {
fastcgi_cache mycache;
fastcgi_cache_key $request_method$host$request_uri;
fastcgi_cache_valid any 1h;
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_intercept_errors on;
}
## Fin config CGI ##
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
location /AYENON {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ayenon";
}
## fin config rutorrent ##
## début config seedbox-manager ##
location ^~ /seedbox-manager {
alias /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php-manager;
include /etc/nginx/conf.d/cache;
}
## fin config seedbox-manager ##
## Début de config wordpress ##
location ^~ / {
root /var/www/wordpress;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
try_files $uri $uri/ /index.php?q=$uri&$args;
satisfy any;
allow all;
}
## fin de config wordpress ##
## Début config phpMyAdmin ##
location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
## Fin config phpMyAdmin ##
## Début de config Pydio ##
location /pydio {
root /var/www;
index index.php;
access_log /var/log/nginx/pydio.access.log;
error_log /var/log/nginx/pydio.error.log;
include /etc/nginx/conf.d/pydio_drop;
include /etc/nginx/conf.d/pydio_php;
include /etc/nginx/conf.d/pydio_cache;
satisfy any;
allow all;
}
## Fin de config Pydio ##
## début config codiad ##
location ^~ /codiad {
root /var/www;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
satisfy any;
allow all;
}
## fin config codiad ##
}
==>
/etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sda1 / ext4 errors=remount-ro,relatime 0 1
/dev/sda2 /home ext4 defaults,relatime 1 2
/dev/sda3 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0
tmpfs /usr/share/nginx/cache tmpfs defaults,size=256m 0 0
Edit : J'ai réglé le problème d'OwnCloud mais on dirait que mon nom de domaine refuse de redirigé vers mon site...
Edit 2 : J'ai supprimer OwnCloud (décidément il m'aura tout fait !) et j'ai vérifier le dns de mon nom de domaine (il avait était reset...)
Problème réglé ou presque car Rutorrent ne veut plus répondre !
Enfin, merci à vous tous pour votre aide !! Mais je pense que je vais beaucoup m’intéresser à la VM avec Proxmox et compagnie mais avec un Kimsufi... Ça va être difficile !
Mais comment je pourrais faire pour faire repartir Rutorrent du poil de la bête (j'ai restart via seedbox manager mais rien ne se passe)
Edit 3 : Rutorrent a démarré mais un message d'erreur s'affiche :
Bad response from server: (500 [error,getalltrackers]) <!DOCTYPE html> <html> <head> <title>Error</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>An error occurred.</h1> <p>Sorry, the page you are looking for is currently unavailable.<br/> Please try again later.</p> <p>If you are the system administrator of this resource then you should check the <a href="http://nginx.org/r/error_log">error log</a> for details.</p> <p><em>Faithfully yours, nginx.</em></p> </body> </html>