Guest User

Untitled

a guest
Jan 18th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. sudo apt install apache2 libapache2-mod-fcgid
  2.  
  3. sudo apt install python-software-properties
  4. sudo add-apt-repository ppa:ondrej/php
  5.  
  6. server {
  7. listen 8360;
  8. listen [::]:8360;
  9.  
  10. root /var/www/depildiodo/;
  11. index index.php index.html index.htm index.nginx-debian.html;
  12.  
  13. server_name 82.223.98.245;
  14.  
  15. error_page 404 /404.php;
  16. location /404.php {
  17. internal;
  18. }
  19.  
  20. location ~* .(jpg|jpeg|png|gif|ico|svg)$ { expires 365d; } location ~* .(css|js|pdf)$ { expires 30d; }
  21.  
  22. location ~ .php$ {
  23. include snippets/fastcgi-php.conf;
  24.  
  25. fastcgi_pass unix:/run/php/php5.6-fpm.sock;
  26. }
  27.  
  28. location ~ /.ht {
  29. deny all;
  30. }
  31. }
Add Comment
Please, Sign In to add comment