-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
113 lines (113 loc) · 1.66 KB
/
Caddyfile
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
halcyon.domain.tld {
log /var/log/caddy/halcyon.log
fastcgi / 127.0.0.1:9000 php
root /opt/halcyon
status 404 {
/config.ini
/.bat
/.git
/.ini
/.sh
/.svn
/.txt
/.tpl
/.xml
}
rewrite {
r ^/home/?$
to /
}
rewrite {
r ^/login/?$
to /login/login.php
}
rewrite {
r ^/auth/?$
to /login/auth.php
}
rewrite {
r ^/logout/?$
to /login/logout.php
}
rewrite {
r ^/terms/?$
to /login/terms.php
}
rewrite {
r ^/local/?$
to /local.php
}
rewrite {
r ^/federated/?$
to /federated.php
}
rewrite {
r ^/notifications/?$
to /notifications.php
}
rewrite {
r ^/whotofollow/?$
to /who_to_follow.php
}
rewrite {
r ^/search/?$
to /search_hash_tag.php
}
rewrite {
r ^/search/users/?$
to /search_user.php
}
rewrite {
r ^/settings/?$
to /settings_general.php
}
rewrite {
r ^/settings/profile/?$
to /settings_profile.php
}
rewrite {
r ^/settings/appearance/?$
to /settings_appearance.php
}
rewrite {
r ^/@(.+)@(.+).([a-z]+)/?$
to /user.php?user=@{1}@{2}.{3}
}
rewrite {
r ^/@(.+)@(.+).([a-z]+)/status/(.+?)?$
to /user.php?user=@{1}@{2}.{3}&status={4}
}
rewrite {
r ^/@(.+)@(.+).([a-z]+)/media/?$
to /user_only_media.php?user=@{1}@{2}.{3}
}
rewrite {
r ^/@(.+)@(.+).([a-z]+)/with_replies/?$
to /user_include_replies.php?user=@{1}@{2}.{3}
}
rewrite {
r ^/@(.+)@(.+).([a-z]+)/followers/?$
to /user_followers.php?user=@{1}@{2}.{3}
}
rewrite {
r ^/@(.+)@(.+).([a-z]+)/following/?$
to /user_following.php?user=@{1}@{2}.{3}
}
rewrite {
r ^/@(.+)@(.+).([a-z]+)/favourites/?$
to /user_favorite.php?user=@{1}@{2}.{3}
}
rewrite {
r ^/avatars/original/missing.png$
to /assets/images/missing.png
}
rewrite {
r ^/headers/original/missing.png$
to /assets/images/missing_header.png
}
rewrite {
r ^/404/?$
to /404.php
}
}