Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen 443 ssl;
  4. ssl_certificate /etc/nginx/ssl/inlearno.ru.crt;
  5. ssl_certificate_key /etc/nginx/ssl/inlearno.ru.key;
  6.  
  7. root /opt/www/www;
  8. server_name front-11.inlearno.com *.inlearno.com ;
  9. index index.html index.php;
  10. access_log /var/log/nginx/inlearno.access.log;
  11. error_log /var/log/nginx/inlearno.error.log;
  12. client_max_body_size 1000M;
  13. gzip on;
  14. gzip_vary on;
  15.  
  16. gzip_types
  17. application/atom+xml
  18. application/javascript
  19. application/rss+xml
  20. application/x-javascript
  21. application/xhtml+xml
  22. image/svg+xml
  23. image/x-icon
  24. text/css
  25. text/javascript
  26. text/plain
  27. text/x-component
  28. text/xml;
  29. gzip_http_version 1.0;
  30. gzip_min_length 150;
  31.  
  32. rewrite ^/robots.txt$ /alfa-robots.txt break;
  33.  
  34. location / {
  35. root /opt/www/www;
  36. try_files $uri $uri/ /index.php?q=$uri&$args;
  37. if (!-e $request_filename){
  38. rewrite (.*) /index.php last;
  39. }
  40. log_subrequest on;
  41. }
  42.  
  43. location ~ /lp {
  44. proxy_pass http://lending.inlearno.ru;
  45. }
  46. location ~ \.php$ {
  47. fastcgi_pass 127.0.0.1:9000;
  48. try_files $uri $uri/ /index.php?q=$uri&$args;
  49. if (!-e $request_filename){
  50. rewrite (.*) /index.php last;
  51. }
  52. log_subrequest on;
  53. include fastcgi_params;
  54. fastcgi_index index.php;
  55. fastcgi_param SCRIPT_FILENAME /opt/www/www$fastcgi_script_name;
  56. fastcgi_param DOCUMENT_ROOT /opt/www/www;
  57. fastcgi_param HTTP_HOST $host;
  58. fastcgi_param PATH_INFO $fastcgi_script_name;
  59. fastcgi_param QUERY_STRING $query_string;
  60. fastcgi_param REQUEST_METHOD $request_method;
  61. fastcgi_param CONTENT_TYPE $content_type;
  62. fastcgi_param CONTENT_LENGTH $content_length;
  63. }
  64.  
  65. location /assets {
  66. root /tmp/runtime;
  67. expires 30d;
  68. }
  69.  
  70. location ~ /\.ht {
  71. deny all;
  72. }
  73. location ~ /\.git {
  74. deny all;
  75. }
  76.  
  77. location /site_assets {
  78. rewrite /site_assets/(.*) /$1 break;
  79. root /opt/www/www/protected/extensions/Inlearno/Templates/dist/site_assets;
  80. expires 30d;
  81. }
  82.  
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement