1
0
mirror of https://github.com/elisspace/rtinst.git synced 2026-09-16 07:52:51 +00:00
Files
rtinst/nginxsite
2014-09-27 18:51:31 +01:00

40 lines
1004 B
Plaintext

server {
listen 80;
server_name <Server IP>;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name <Server IP>;
root /var/www;
index index.html index.php index.htm;
ssl_certificate /etc/ssl/ruweb.crt;
ssl_certificate_key /etc/ssl/ruweb.key;
ssl_session_timeout 5m;
location / {
try_files $uri $uri/ =404;
}
location ^~ /rutorrent {
auth_basic "Restricted";
auth_basic_user_file /var/www/rutorrent/.htpasswd;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
#include /etc/nginx/conf.d/rtdload;
location ~ /\.ht {
deny all;
}
}