blob: ee79d71e8cb2bd19d35e8d378e25a96111939b2f (
plain)
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
38
39
40
41
|
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name freshrss.example.com;
root %%WWWDIR%%/p;
index index.php index.html;
access_log /var/log/freshrss.access.log;
error_log /var/log/freshrss.error.log;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ ^.+?\.php(/.*)?$ {
try_files $fastcgi_script_name =404;
fastcgi_pass unix:/var/run/php/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}
|