-
Notifications
You must be signed in to change notification settings - Fork 4
/
arktis.conf
40 lines (33 loc) · 1.02 KB
/
arktis.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
35
36
37
38
39
40
server {
listen 80;
server_name localhost;
server_name arkt.is;
access_log /var/log/nginx/arktis.access.log;
error_log /var/log/nginx/arktis.error.log;
rewrite ^/apple-touch-icon-114x114-precomposed.png favicon.ico;
rewrite ^/apple-touch-icon-114x114.png favicon.ico;
rewrite ^/apple-touch-icon-precomposed.png favion.ico;
rewrite ^/apple-touch-icon.png favicon.ico;
rewrite ^/(.*)/favicon.ico$ /favicon.ico last;
root /home/prods/arktis;
index index.php index.html index.htm;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ \.inc$ {
deny all;
}
# specific files to be exluded
location ~ (arktis\.conf|README\.md|\.git|\.gitmodules|Makefile) {
return 404;
}
location = /favicon.ico {
access_log off;
log_not_found off;
return 204;
}
}