index index.php;
root /var/www/friendica;
- rewrite ^ https://friendica.example.net$request_uri? permanent;
+ rewrite ^ https://$server_name$request_uri? permanent;
}
##
listen 443 ssl;
server_name friendica.example.net;
- ssl on;
-
#Traditional SSL
ssl_certificate /etc/nginx/ssl/friendica.example.net.chain.pem;
ssl_certificate_key /etc/nginx/ssl/example.net.key;
# fastcgi_pass 127.0.0.1:9000;
# With php7.0-fpm:
- fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
+ fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
include fastcgi_params;
fastcgi_index index.php;
location ~ /\. {
deny all;
}
+
+ # deny access to the CLI scripts
+ location ^~ /bin {
+ deny all;
+ }
}