Skip to content

Instantly share code, notes, and snippets.

@schmiddim
Created January 12, 2020 15:52
Show Gist options
  • Save schmiddim/a6bf368fc6ee5851d3887e0f5fe5a8cc to your computer and use it in GitHub Desktop.
Save schmiddim/a6bf368fc6ee5851d3887e0f5fe5a8cc to your computer and use it in GitHub Desktop.
Tiny Tiny Rss nginx config php7.3
#will improve this later
server {
listen 80; ## listen for ipv4; this line is default and implied
root /var/www/stock-rss.vapesetups.com/;
index index.html index.htm index.php;
access_log /var/log/nginx/ttrss_access.log;
error_log /var/log/nginx/ttrss_error.log info;
server_name yourhost.com;
location / {
index index.php;
}
location ~ \.php$ {
try_files $uri = 404; #Prevents autofixing of path which could be used for exploit
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment