Skip to content

Commit

Permalink
Update liara_nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Najmabadi authored Aug 13, 2024
1 parent d2d7c73 commit 253967f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions liara_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ location = /404.html {
internal;
}

# location / {
# rewrite ^/(.*)/$ /$1 permanent;
# }

rewrite ^/(.*)/$ /$1 permanent;

location / {
try_files $uri $uri/ $uri.html =404;
}


# NodeJS
location ~ ^/app-deploy/nodejs/getting-started/?$ {
return 301 /paas/nodejs/getting-started;
Expand Down Expand Up @@ -1120,10 +1127,6 @@ location ~* \.(?:manifest|appcache|html?|xml|json)$ {
expires -1;
}

location / {
rewrite ^/(.+)/$ /$1 permanent;
}

# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1M;
Expand Down

0 comments on commit 253967f

Please sign in to comment.