mirror of
https://github.com/elisspace/rtinst.git
synced 2026-10-04 16:16:20 +00:00
Create nginxsite
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
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 127.0.0.1:9000;
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user