-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdefault.conf
34 lines (32 loc) · 1.01 KB
/
default.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
server {
listen 80;
server_name localhost;
gzip on;
gzip_disable "msie6";
gzip_types application/javascript text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/png image/gif image/jpeg image/jpg image/svg+xml ;
gzip_comp_level 5;
root /usr/share/nginx/html;
location / {
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|woff|woff2)$ {
expires 30d;
etag on;
}
index index.html index.htm;
}
location /ru {
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|woff|woff2)$ {
expires 30d;
etag on;
}
alias /usr/share/nginx/html;
index index_ru.html index.htm;
}
location /en {
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|woff|woff2)$ {
expires 30d;
etag on;
}
alias /usr/share/nginx/html;
index index_en.html index.htm;
}
}