Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.12 KB | None | 0 0
  1. server {
  2.         listen 80;
  3.  
  4.     server_name es-student.loc;
  5.  
  6.     add_header Strict-Transport-Security "max-age=300; includeSubdomains; preload";
  7.  
  8.     root /home/dmarchuk/www/StudentShare-New/frontend/web;
  9.         index index.php;
  10.  
  11.     location ~ /guideImages {
  12.         proxy_pass http://es-crm.loc;
  13.         proxy_set_header X-Real-IP $remote_addr;
  14.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15.         proxy_read_timeout 900;
  16.     }
  17.  
  18.     location / {
  19.             try_files $uri $uri/ /index.php?$args;
  20.     }
  21.  
  22.    
  23.     location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
  24.         rewrite ^/img/document-gallery/(.+)\.(png|jpg|gif|ico)$ http://static.es-student/img/document-gallery/$1.$2 permanent;
  25.     }
  26.  
  27.     location ~ \.(ttf|otf)$ {
  28.             expires 30d;
  29.             add_header Cache-Control public;
  30.         }
  31.    
  32.     location ~\.xml$ {
  33.         root /home/dmarchuk/www/StudentShare-New/frontend/web/ss_sitemaps;
  34.     }
  35.        
  36.         location ~ \.php$ {
  37.             include snippets/fastcgi-php.conf;
  38.         fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
  39.         }
  40.  
  41.         location ~ /\.ht {
  42.             deny all;
  43.         }
  44.  
  45.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement