31 lines
803 B
Nginx Configuration File
31 lines
803 B
Nginx Configuration File
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;
|
|
scgi_pass localhost:5000;
|
|
}
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
}
|
|
}
|