2018-05-07 07:38:11 -05:00
|
|
|
worker_processes 1;
|
|
|
|
|
events {
|
|
|
|
|
worker_connections 1024;
|
|
|
|
|
}
|
|
|
|
|
http {
|
|
|
|
|
include mime.types;
|
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
sendfile on;
|
|
|
|
|
keepalive_timeout 65;
|
|
|
|
|
server {
|
|
|
|
|
listen 5080;
|
|
|
|
|
server_name localhost;
|
|
|
|
|
root /usr/share/webapps/rutorrent;
|
|
|
|
|
location / {
|
|
|
|
|
index index.html index.htm;
|
|
|
|
|
}
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
|
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
|
|
|
|
|
fastcgi_index index.php;
|
|
|
|
|
include fastcgi.conf;
|
|
|
|
|
}
|
|
|
|
|
location /RPC2 {
|
|
|
|
|
include scgi_params;
|
2018-05-24 01:33:50 -05:00
|
|
|
scgi_pass localhost:5050;
|
2018-05-07 07:38:11 -05:00
|
|
|
}
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
|
location = /50x.html {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|