about summary refs log tree commit diff stats
path: root/linux/conf/nginx/sites-enabled/ports.conf
blob: 829d710a5c90a69f8d53557ed31a731cfb52c484 (plain) (blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
server {
    listen       80;
    server_name  localhost ports.ank default_host;

    access_log /var/log/nginx/ports_access.log;
    error_log /var/log/nginx/ports_error.log;

    location /mirror/archive {
    	autoindex on;
    	alias /usr/ports/archive;
    }

    location /mirror/packages {
    	autoindex on;
    	alias /usr/ports/packages;
    }

    location /mirror/distfiles {
    	autoindex on;
    	alias /usr/ports/distfiles;
    }
    		
    location /mirror/bugs {
    	autoindex on;
    	alias /usr/ports/pkgbuild;
    	types {
    		text/plain log;
    	}
    }

    location /mirror/installed {
    	autoindex on;
    	alias /usr/ports/installed;
    	default_type text/plain;
    }
    	
    location /mirror/releases {
    	autoindex on;
    	alias /usr/ports/releases;
    }

	location /mirror/ {
         return 301 https://tribu.semdestino.org/wiki/Main/Mirror;
    }

    error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
}