aboutsummaryrefslogtreecommitdiffstats
path: root/www/freshrss/files/nginx.conf.sample.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/freshrss/files/nginx.conf.sample.in')
-rw-r--r--www/freshrss/files/nginx.conf.sample.in41
1 files changed, 41 insertions, 0 deletions
diff --git a/www/freshrss/files/nginx.conf.sample.in b/www/freshrss/files/nginx.conf.sample.in
new file mode 100644
index 0000000..ee79d71
--- /dev/null
+++ b/www/freshrss/files/nginx.conf.sample.in
@@ -0,0 +1,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;
+ }
+ }
+}