forked from torne/Tiny-Tiny-RSS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx-default
37 lines (27 loc) · 1.07 KB
/
nginx-default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
server {
listen 80;
server_name localhost;
root /opt/Tiny-Tiny-RSS/;
index index.php;
location / {
location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README) {
deny all;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
set $self_url_path SELF_URL_PATH;
if ($self_url_path ~ (.*)\/$) {
set $self_url_path $1;
}
fastcgi_param REQUEST_URI $self_url_path$request_uri;
fastcgi_param X-Forwarded-Proto $scheme;
}
location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ {
expires 30d;
access_log off;
}
}
}