Horje
nginx docker redirect no trailing slash to trailing slash Code Example
nginx docker redirect no trailing slash to trailing slash
server {
    listen 80;
    listen 443 ssl http2;
    
    ...

    # This is the line that redirects uris with missing / (it adds it to the uri)
    rewrite ^/repairapp/([^static].*[^/])$ /repairapp/$1/ permanent;
    
    # This is nginx serving my static files
    location /repairapp/static/ {
        alias /var/www/repairapp/static/;
    }
    
    # This is the uri that maps to my app (no file serving here)
    location /repairapp/ {
        proxy_pass http://repairappcontainer:8000/;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
        proxy_redirect off;
    }
    
    ...




Whatever

Related
verve Code Example verve Code Example
lightning web component get record id Code Example lightning web component get record id Code Example
purin artist Code Example purin artist Code Example
New bundles must use latest available Audience Network SDK. Code Example New bundles must use latest available Audience Network SDK. Code Example
old earth Code Example old earth Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7