Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name (isi ip / domain);
  5.  
  6. root /var/www/mobil_laravel/public;
  7.  
  8. # Add index.php to the list if you are using PHP
  9. index index.php;
  10.  
  11. access_log /var/www/nginx-acc.log;
  12. error_log /var/www/nginx-err.log;
  13.  
  14. location / {
  15. error_page 550 = @protected;
  16. recursive_error_pages on;
  17.  
  18. try_files $uri $uri/ /index.php@is_args@args;
  19. }
  20.  
  21. location ~ \.php$ {
  22. fastcgi_index index.php;
  23. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  24. fastcgi_keep_conn on;
  25. include /etc/nginx/fastcgi_params;
  26. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27. try_files $uri =404;
  28. }
  29.  
  30. location ~/\. {
  31. deny all;
  32. }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement