Advertisement
Guest User

Untitled

a guest
Aug 15th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. server {
  2. charset utf-8;
  3. client_max_body_size 128M;
  4.  
  5. listen 1081 default; ## listen for ipv4
  6. server_name www.svyaznoy.travel svyaznoy.travel;
  7.  
  8. set $project_root /var/www/w3axpress/data/www;
  9. root $project_root/aeroexpress/public;
  10.  
  11. access_log /var/log/nginx/axpress-access.log;
  12. error_log /var/log/nginx/axpress-error.log;
  13.  
  14. index index.php index.html index.htm;
  15. include conf.d/restrictions-include;
  16.  
  17. location ~ \.(svg|txt|html|js|css|png|jpg|jpeg|gif|bmp|swf|ico|pdf|mov|fla|zip|rar|7z|eot|ttf|woff|woff2|csv|xml|doc|docx|xls|xlsx|rtf) {
  18. root $project_root/aeroexpress;
  19.  
  20. #add_header test $uri;
  21. #return 301;
  22. #try_files $uri =404;
  23.  
  24. try_files $uri $uri/ =404;
  25. access_log off;
  26. }
  27.  
  28. location / {
  29.  
  30. #root $project_root/aeroexpress/public;
  31. #add_header test $uri;
  32. #return 301;
  33.  
  34.  
  35. # First attempt to serve request as file, then
  36. # as directory, then fall back to displaying a 404.
  37. try_files $uri $uri/ /index.php$is_args$args;
  38.  
  39. }
  40.  
  41. location ~ \.php$ {
  42. try_files $uri /index.php =404;
  43. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  44. fastcgi_pass w3axpress_upstream;
  45. fastcgi_index index.php;
  46. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  47. include fastcgi_params;
  48. }
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement