Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- root /var/www/immelman.ru/data/www/sektaschool.ru.dev.immelman.ru/dist;
- include /etc/nginx/vhosts-includes/noindex.conf;
- index index.html;
- server_name sektaschool.ru.dev.immelman.ru;
- location / {
- try_files $uri $uri/ @rewrites;
- }
- location @rewrites {
- rewrite ^(.+)$ /index.html last;
- }
- location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
- # Some basic cache-control for static files to be sent to the browser
- expires max;
- add_header Pragma public;
- add_header Cache-Control "public, must-revalidate, proxy-revalidate";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement