Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
Adjust nginx.conf: Allow session in URL
  • Loading branch information
ehuelsmann authored Nov 12, 2024
1 parent 33ac947 commit 221f258
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ http {
gzip_static on;
add_header Pragma public;
add_header Cache-Control "public, max-age=0, must-revalidate, proxy-revalidate";
try_files $uri =404;
if (!-f $request_filename) {
rewrite ^/([a-z0-9A-Z]+)/(.*) /$2 break;
}
}

location ~ \.pl$ {
Expand All @@ -77,7 +79,7 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}

location /erp/api/ {
location ~ ^(/[a-z0-9A-Z]+)?/erp/api/ {
proxy_pass http://lsmb:5762;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
Expand Down

0 comments on commit 221f258

Please sign in to comment.