Skip to content

Instantly share code, notes, and snippets.

@ricventu
Created April 2, 2017 13:21
Show Gist options
  • Save ricventu/9833e125f37593bafe52c8255c31f20a to your computer and use it in GitHub Desktop.
Save ricventu/9833e125f37593bafe52c8255c31f20a to your computer and use it in GitHub Desktop.
Secure php and nginx production env on Ubuntu

in file: /etc/php5/fpm/php.ini

cgi.fix_pathinfo=0
expose_php=Off

in file: /etc/nginx/nginx.conf

server_tokens off;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment