forked from dieulot/instantclick-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx-dev
More file actions
41 lines (31 loc) · 833 Bytes
/
nginx-dev
File metadata and controls
41 lines (31 loc) · 833 Bytes
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
35
36
37
38
39
40
41
server {
server_name instantclick.dev instantclick.192.168.1.2.xip.io;
root /home/alex/instantclick/instantclick.io;
location ~ ^/(whitelist|start)\.html$ {
return 302 /download;
}
location ~ ^/([^/]+)\.html$ {
return 302 /$1;
}
try_files /files$uri /index.php?page=$uri;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
}
server {
server_name output.instantclick.dev;
root /home/alex/instantclick/instantclick.io/output;
expires 1s;
location ~ ^/(whitelist|start)\.html$ {
return 302 /download;
}
location ~ \.(js|png|jpg|ico)$ {
expires 24s;
}
try_files $uri $uri/ $uri.html =404;
error_page 404 /404.html;
}