-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
27 lines (21 loc) · 784 Bytes
/
nginx.conf
File metadata and controls
27 lines (21 loc) · 784 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
rewrite_log on;
error_log /var/log/nginx/localhost.error_log notice;
# Server specifies the domain, and location the relative url
server {
listen 80;
root /usr/share/nginx/html;
recursive_error_pages on;
location / {
add_header X-debug-message "/" always;
add_header X-debug-uri $uri always;
add_header X-debug-request_uri $request_uri always;
try_files $uri $uri/ /index.html?/$request_uri /index.html =404;
}
# Any kind of assets , TODO: engines-dist/ come from
location ~* /(.*)(assets|font|images|engines-dist)(.*)/ {
add_header X-debug-message "/(.*)(assets|font|images|engines-dist)(.*)/" always;
add_header X-debug-uri $uri always;
add_header X-debug-request_uri $request_uri always;
try_files $uri $uri/ =404;
}
}