-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlanding.conf
34 lines (31 loc) · 975 Bytes
/
landing.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 www.elastic-coders.com;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
expires -1;
if ($http_x_forwarded_proto == 'https') {
rewrite ^ http://www.elastic-coders.com$request_uri? permanent;
}
location ~* \.(?:css|js|jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1d;
access_log off;
}
}
# CSS and Javascript
gzip on;
gzip_min_length 1000;
gzip_proxied off;
gzip_types text/plain application/xml text/javascript application/javascript text/css;
gzip_vary on;
error_page 404 http://www.elastic-coders.com/404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 http://www.elastic-coders.com/50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}