Salut,
Non justement il me dit que le service local ne renvoie pas d'erreur.. Effectivement j'ai voulu aller trop vite, dans le tuto linké au dessus ils disent bien de créer un .conf à part... et du coup je viens de vérifier et le nginx -t fonctionne sur windows
Au départ dans le nginx j'ai ça :
#user nobody;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
#CHANGE THESE LINES##########
server_name localhost;
root /nginx/html/organizr;
#############################
index index.php index.html index.htm;
error_page 400 401 403 404 405 408 500 502 503 504 /error.php?error=$status;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
Et en mettant ça :
#user nobody;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
#CHANGE THESE LINES##########
server_name localhost;
root /nginx/html/organizr;
#############################
index index.php index.html index.htm;
error_page 400 401 403 404 405 408 500 502 503 504 /error.php?error=$status;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
location /jackett {
#include C:/WPNXM/bin/nginx/conf/cookie_direct_blocking.conf;
proxy_pass http://127.0.0.1:8081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /torrent {
#include C:/WPNXM/bin/nginx/conf/cookie_direct_blocking.conf;
proxy_pass http://127.0.0.1:8082;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /sonarr {
#include C:/WPNXM/bin/nginx/conf/cookie_direct_blocking.conf;
proxy_pass http://127.0.0.1:8083;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /radarr {
#include C:/WPNXM/bin/nginx/conf/cookie_direct_blocking.conf;
proxy_pass http://127.0.0.1:8084;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /plexpy {
#include C:/WPNXM/bin/nginx/conf/cookie_direct_blocking.conf;
proxy_pass http://127.0.0.1:8085;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /plex {
#include C:/WPNXM/bin/nginx/conf/cookie_direct_blocking.conf;
proxy_pass http://127.0.0.1:32400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /plexrequests {
#include C:/WPNXM/bin/nginx/conf/cookie_direct_blocking.conf;
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
J'obtiens :
c:\nginx>nginx -t
nginx: [emerg] "location" directive is not allowed here in c:\nginx/conf/nginx.conf:55
nginx: configuration file c:\nginx/conf/nginx.conf test failed
Je vais repartir sur un .conf séparé dans sites-enabled mais je dois repartir d'où dans mon fichier? à partir de la ligne "http {" et je rajoute mes reverse proxys après?