Skip to content

Commit

Permalink
versuch #2
Browse files Browse the repository at this point in the history
  • Loading branch information
mcilurzo committed Aug 24, 2024
1 parent e0f56c4 commit 7cd2d41
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ server {
root /usr/share/nginx/html;
index index.html index.htm;

if ($http_host = "digital-alias.app.sbb.ch") {
return 301 $scheme://digital.sbb.ch$request_uri;
}

rewrite ^([^.]*[^/])$ $1/ permanent;
port_in_redirect off;
autoindex on;
Expand All @@ -44,15 +48,5 @@ server {
location / {
try_files $uri $uri/ =404;
}


}




server {
listen 8080
server_name digital-alias.app.sbb.ch;
rewrite ^/(.*)$ http://digital.sbb.ch/$1 redirect;
}

0 comments on commit 7cd2d41

Please sign in to comment.