-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
38 lines (30 loc) · 921 Bytes
/
nginx.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
events {
}
http {
server {
listen 80 default_server;
location /search {
return 302 https://www.google.com/search?q=site%3Awww.miroguide.com+$arg_query;
}
location /audio/search {
return 302 https://www.google.com/search?q=site%3Awww.miroguide.com+audio+$arg_query;
}
location /404.html {
root /usr/share/nginx/html/;
}
location / {
if ($args) {
rewrite ^ "${uri}__${query_string}?";
}
rewrite ^(.*)/$ $1/index.html;
error_page 404 = /404.html;
proxy_intercept_errors on;
proxy_pass https://www.miroguide.com.s3.amazonaws.com;
}
}
server {
listen 80;
server_name miroguide.org www.miroguide.org miroguide.com;
rewrite ^/(.*)$ http://www.miroguide.com/$1 permanent;
}
}