Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name es-student.loc;
- add_header Strict-Transport-Security "max-age=300; includeSubdomains; preload";
- root /home/dmarchuk/www/StudentShare-New/frontend/web;
- index index.php;
- location ~ /guideImages {
- proxy_pass http://es-crm.loc;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_read_timeout 900;
- }
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
- rewrite ^/img/document-gallery/(.+)\.(png|jpg|gif|ico)$ http://static.es-student/img/document-gallery/$1.$2 permanent;
- }
- location ~ \.(ttf|otf)$ {
- expires 30d;
- add_header Cache-Control public;
- }
- location ~\.xml$ {
- root /home/dmarchuk/www/StudentShare-New/frontend/web/ss_sitemaps;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement