Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. server {
  2. listen *:80;
  3.  
  4. server_name cms.local.tigo.mk;
  5. root /home/anduser/www/mango_web_mk//public/;
  6. index index.html index.php tindex.php;
  7.  
  8. error_log /home/anduser/www/logs/cms-error.log;
  9. access_log /home/anduser/www/logs/cms-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. if ($request_uri ~* "^(.*/)index\.php$") {
  41. return 301 $1;
  42. }
  43.  
  44. location ~ \.php$ {
  45. try_files /385f4dba8548ecb04fc442d620c01520.htm @php;
  46. }
  47.  
  48. location / {
  49. try_files $uri $uri/ /index.php?$args;
  50. }
  51.  
  52. location @php {
  53. try_files $uri =404;
  54. include /etc/nginx/fastcgi_params;
  55. fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
  56. fastcgi_index index.php;
  57. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  58. fastcgi_intercept_errors on;
  59. fastcgi_param APPLICATION_ENV development;
  60. fastcgi_param COUNTRY_ENV mk;
  61. fastcgi_read_timeout 2400;
  62. }
  63.  
  64. #error_page 404 /maintenance.html;
  65. error_page 502 503 504 /maintenance.html;
  66. error_page 403 /maintenance.html;
  67.  
  68. location = /maintenance.html {
  69. alias /home/anduser/www/mango_web_mk/public/module/Web/view/error/maintenance.html;
  70. allow all;
  71. }
  72.  
  73. location /admin {
  74. root /home/anduser/www/mango_web_mk/public/admin;
  75. rewrite ^/admin([^.]+\.[^.]+)$ /$1 break;
  76. try_files $uri $uri/ /admin/index.php?$args;
  77. }
  78.  
  79. add_header Strict-Transport-Security max-age=15768000;
  80.  
  81. location /admin/css/ {
  82. }
  83.  
  84. location /admin/js/ {
  85. }
  86.  
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement