Bonjour,
Je me permets de venir vers vous car j'ai besoin de votre aide.
Voici mon problème : Je souhaite dissocier la conf nginx pour avoir plus de souplesse.
En effet, toutes mes applications sont dans le fichier rutorrent.conf
Je souhaite dans ce cas, avoir un fichier proxy.conf, manager.conf, base.conf.
Cependant, je n'arrive pas à dissocier les configurations.
J'obtiens automatiquement un 404,(il ne trouve pas mon fichier index.php), lorsque j'ai crée mon fichier de configuration.
En regardant les logs nginx, j'obtiens ça en souhaitant créer mon fichier base.conf :
2016/04/01 21:17:51 [error] 14056#14056: *9 "/var/www/base/rutorrent/index.html" is not found (2: No such file or directory),
2016/04/01 21:19:33 [error] 16694#16694: *1 "/var/www/base/rutorrent/index.html" is not found (2: No such file or directory),
je comprends donc qu'il ne va pas chercher le fichier au bon endroit, cependant, j'ai tout essayé, il pointe toujours vers ce repertoire,
Exemple pour seedbox-manager.conf :
/04/03 11:37:28 [error] 30169#30169: *223 "/var/www/base/seedbox-manager/index.html" is not found (2: No such file or directory)
Voici mon fichier . conf :
server {
listen 80;
listen 443 ssl http2;
server_name IP_du-Server;
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 proxy ##
location ^~ /proxy {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config proxy ##
}
Si vous avez une idée, je suis preneur.
Merci d'avance