Guest User

Untitled

a guest
Mar 21st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. site
  2. -index.php
  3. -uploads/image.jpg....
  4. -css/
  5. -js/
  6.  
  7. server {
  8.  
  9. listen site.com;
  10.  
  11. server_name site.com;
  12.  
  13.  
  14.  
  15. root /home/vijo/Music/PHP/site;
  16.  
  17. index index.php index.html index.htm;
  18.  
  19.  
  20.  
  21. keepalive_timeout 70;
  22.  
  23. access_log /home/vijo/Music/PHP/site/log/access.log;
  24.  
  25. error_log /home/vijo/Music/PHP/site/log/error.log;
  26.  
  27.  
  28.  
  29.  
  30.  
  31. # Make site accessible from http://localhost/
  32.  
  33.  
  34.  
  35. location / {
  36.  
  37. try_files $uri $uri/ @rewrite;
  38.  
  39. expires max;
  40.  
  41. }
  42.  
  43.  
  44.  
  45. location @rewrite {
  46.  
  47. rewrite ^ /index.php;
  48. }
  49.  
  50.  
  51.  
  52. location ~ .php$ {
  53.  
  54. fastcgi_split_path_info ^(.+.php)(/.+)$;
  55.  
  56. fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  57.  
  58. fastcgi_index index.php;
  59.  
  60. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  61.  
  62. include fastcgi_params;
  63.  
  64. }
  65.  
  66.  
  67.  
  68. location ~ /.ht {
  69.  
  70. deny all;
  71.  
  72. }
Add Comment
Please, Sign In to add comment