Bonjour! Alors en gros je galère depuis un petit moment sur un problème dont je ne cerne pas complètement l'étendu
J'ai un dédié kimsufi & un nom de domaine chez ovh. J'ai utilisé le
super scripts pour rutorrent ensuite
le certificat ssl. Jusqu'à là, ça marche bien.
J'ai testé de suivre l'installation de
server mail et j'en suis à me rendre sur postfixadmin.domaine.tdl
Et c'est la que ça commence a déconner.
domaine.tdl -> /var/www/base
domaine.tdl/rutorrent -> /var/www/rutorrent
torrent.domaine.dln -> /var/www/rutorrent
postfixadmin.domaine.tdl -> /var/www/base ?
J'ai essayé plein de choses.... ajouter une config ssl à postfix, des heures de lectures sur la gestion des sous domaine, les déclarations dans les server dns, j'ai essayé owncloud aussi mais j'ai abandonné car j'ai la "même" erreur
/etc/nginx/
├── conf.d
│ ├── cache.conf
│ ├── ciphers.conf
│ ├── default.conf
│ ├── php.conf
│ └── php-manager.conf
├── fastcgi_params
├── koi-utf
├── koi-win
├── mime.types
├── modules -> /usr/lib/nginx/modules
├── nginx.conf
├── passwd
│ ├── rutorrent_passwd
│ ├── rutorrent_passwd_cecile
│ └── rutorrent_passwd_yuk
├── scgi_params
├── sites-enabled
│ ├── postfixadmin.conf
│ ├── rutorrent.conf
│ └── rutorrent.conf.bak
├── ssl
│ ├── dhparams.pem
│ ├── params.conf
│ ├── server.crt
│ └── server.key
├── uwsgi_params
└── win-utf
/etc/nginx/sites-enable/rutorrent.conf
server {
listen 80 default_server;
listen 443 default_server ssl http2;
server_name torrent.domaine.tld;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
ssl_certificate /etc/letsencrypt/live/domaine.tld/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domaine.tld/privkey.pem;
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 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 /YUK {
include scgi_params;
scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_yuk";
}
location /CECILE {
include scgi_params;
scgi_pass 127.0.0.1:5003; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_cecile";
}
location ~* \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
etc/nginx/sites-enable/postfixadmin.conf
server {
listen 80;
server_name postfixadmin.domaine.tld;
root /var/www/postfixadmin;
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ index.php;
}
location ~* \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Du coup je rajoute la zone dns aussi
@ IN SOA dns105.ovh.net. tech.ovh.net. (2016071510 86400 3600 3600000 300)
IN NS dns105.ovh.net.
IN NS ns105.ovh.net.
IN MX 1 redirect.ovh.net.
IN A IPV4(kimsufi)
IN TXT "1|domaine.tdl"
mail IN MX 10 domaine.tdl.
mail IN A IPV4(kimsufi)
postfixadmin IN CNAME hostname
rainloop IN CNAME hostname
torrent IN A IPV4(kimsufi)
varuna IN A IPV4(kimsufi)
www IN MX 1 redirect.ovh.net.
www IN A IPV4(kimsufi)
www IN TXT "l|fr"
www IN TXT "3|welcome"
Le truc que je ne pige pas bien:
rutorrent.conf est en écoute sur :80 et :443
si je met postfix en écoute sur le port 443 j'ai des erreurs car c'est déjà utilisé... logique. Mais alors comment je peux faire?
Et t'il possible d'avoir ngnix.conf pour domaine.tdl
rutorrent.conf pour torrent.domaine.tdl
postfix.conf pour postfixadmin.domaine.tdl
et le tout en ssl?
Si vous ne pigez pas, que vous avez besoin de plus d'infos n'hésitez pas! Et merci en tout cas!
ps: Ainsi nginx démarre et les log rutorrent-error.log vide
lorsque j'ai essayé owncloud owncloud.domaine.tdl me renvoyais vers -> /var/base/owncloud
ll /var/www/
total 28
drwxr-xr-x 6 www-data www-data 4096 Jul 14 23:01 base
drwxr-xr-x 3 www-data www-data 4096 Jul 14 23:07 graph
drwxr-xr-x 4 munin munin 4096 Jul 14 23:10 monitoring
drwxrwxr-x 17 www-data www-data 4096 Oct 28 2014 postfixadmin
drwxr-xr-x 3 www-data www-data 4096 Jul 14 22:59 proxy
drwxr-xr-x 12 www-data www-data 4096 Jul 14 23:07 rutorrent
drwxr-xr-x 7 www-data www-data 4096 Jul 14 23:05 seedbox-manager