Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4.  
  5. root /var/www/immelman.ru/data/www/sektaschool.ru.dev.immelman.ru/dist;
  6. include /etc/nginx/vhosts-includes/noindex.conf;
  7.  
  8. index index.html;
  9.  
  10. server_name sektaschool.ru.dev.immelman.ru;
  11.  
  12. location / {
  13. try_files $uri $uri/ @rewrites;
  14. }
  15.  
  16. location @rewrites {
  17. rewrite ^(.+)$ /index.html last;
  18. }
  19.  
  20. location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
  21. # Some basic cache-control for static files to be sent to the browser
  22. expires max;
  23. add_header Pragma public;
  24. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  25.  
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement