Guest User

Untitled

a guest
Feb 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. apt-get update -y
  2. apt-get upgrade -y
  3. apt-get upgrade nginx mysql-server php-fpm php-mysql -y
  4. apt-get upgrade php-curl php-gd -y
  5.  
  6. user www-data;
  7. worker_processes auto;
  8. pid /run/nginx.pid;
  9.  
  10. events {
  11. worker_connections 768;
  12. }
  13.  
  14. http {
  15. sendfile on;
  16. tcp_nopush on;
  17. tcp_nodelay on;
  18. keepalive_timeout 65;
  19. types_hash_max_size 2048;
  20.  
  21. include /etc/nginx/mime.types;
  22. default_type application/octet-stream;
  23.  
  24. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  25. ssl_prefer_server_ciphers on;
  26.  
  27. access_log /var/log/nginx/access.log;
  28. error_log /var/log/nginx/error.log;
  29.  
  30. gzip on;
  31. gzip_disable "msie6";
  32.  
  33. include /etc/nginx/conf.d/*.conf;
  34. include /etc/nginx/sites-enabled/*;
  35. }
  36.  
  37. server {
  38. listen 80 default_server;
  39. listen [::]:80 default_server;
  40. root /var/www/html;
  41. index index.php index.html index.htm index.nginx-debian.html;
  42. server_name _;
  43.  
  44. location / {try_files / =404;}
  45. location ~ .php$ {
  46. include snippets/fastcgi-php.conf;
  47. fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  48. }
  49. }
  50.  
  51. This problem can sometimes be caused by disabling or refusing to accept cookies.
Add Comment
Please, Sign In to add comment