Skip to content

Commit

Permalink
fix: move redirects before normal includes for higher priority
Browse files Browse the repository at this point in the history
  • Loading branch information
arnediekmann committed Dec 2, 2021
1 parent 408fb18 commit 46a09b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/update/nginx/listeners/cache-config.listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class CacheConfigListener extends ConfigListener {

protected getConfigLines(meta: Meta): string[] {
const configLines = [
`location ~* \\.(?:manifest|appcache|html|xml|json)$ {
`location ~* \\.(?:manifest|appcache|xml|json)$ {
expires -1;
}`,
`location ~* (serviceWorker\\.js)$ {
Expand Down
4 changes: 2 additions & 2 deletions src/update/nginx/listeners/multisite-config-listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ export class MultisiteConfigListener {
error_page 404 /404/index.html;
root ${rootPath}${prefix};
include ${this.config.nginxConfigDir}/*.conf;
include ${this.config.nginxRedirectsDir}/${site.name}.conf;
include ${this.config.nginxConfigDir}/*.conf;
location / {
try_files $uri $uri.html $uri/index.html $uri/index.htm =404;
}
location = /50x.html {
root /usr/share/nginx/html;
}
Expand Down

0 comments on commit 46a09b6

Please sign in to comment.