Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. server {
  2. listen *:80;
  3.  
  4. server_name erp.local.expresscredit.co.zm;
  5. root /home/anduser/www/mango_erp_zm/public;
  6. index index.html index.php tindex.php;
  7.  
  8. error_log /home/anduser/www/logs/mango_erp_zm/error.log;
  9. access_log /home/anduser/www/logs/mango_erp_zm/access.log combined;
  10.  
  11. location ~ /.well-known {
  12. allow all;
  13. }
  14.  
  15. location ~ /\. {
  16. deny all;
  17. access_log off;
  18. log_not_found off;
  19. }
  20.  
  21. location = /favicon.ico {
  22. log_not_found off;
  23. access_log off;
  24. }
  25.  
  26. location = /robots.txt {
  27. rewrite /robots.txt /robots.php;
  28. allow all;
  29. log_not_found off;
  30. access_log off;
  31. }
  32.  
  33. location ~* \.(jpg|jpeg|gif|png|bmp|ico|pdf|flv|svg|swf|exe|html|htm|txt|css|js|pjpeg|woff|ttf|eot|doc|docx)$ {
  34. access_log off;
  35. log_not_found off;
  36. expires 360d;
  37. add_header Access-Control-Allow-Origin *;
  38. }
  39.  
  40. location ~ \.php$ {
  41. try_files /385f4dba8548ecb04fc442d620c01520.htm @php;
  42. }
  43.  
  44. location / {
  45. try_files $uri $uri/ /index.php?$args;
  46. }
  47.  
  48. location @php {
  49. try_files $uri =404;
  50. include /etc/nginx/fastcgi_params;
  51. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  52. fastcgi_index index.php;
  53. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  54. fastcgi_intercept_errors on;
  55. fastcgi_param APPLICATION_ENV development;
  56. fastcgi_param COUNTRY_ENV zm;
  57. fastcgi_param BEANSTALK_PORT 11300;
  58. fastcgi_read_timeout 2400;
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement