Created
January 12, 2020 15:52
-
-
Save schmiddim/a6bf368fc6ee5851d3887e0f5fe5a8cc to your computer and use it in GitHub Desktop.
Tiny Tiny Rss nginx config php7.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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