ART-DECOR installation nginx http example

Revision as of 23:36, 23 April 2020 by Mligtvoet (talk | contribs) (Created page with "=Example NGINX HTTP config= Reroute all HTTP traffic to HTTPS <syntaxhighlight lang="bash" enclose="div"> # virtual host configuration for decor, reverse proxy to tomcat serve...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example NGINX HTTP config

Reroute all HTTP traffic to HTTPS

# virtual host configuration for decor, reverse proxy to tomcat
server {
    client_max_body_size 40M;
    listen 80;
    
    server_name <<YOUR PUBLIC URL>>;
    error_page 404 502 503 504 /50x.html;
    
    location = /50x.html {
       root   html;
       allow all;
    }
    
    charset utf-8;
    access_log logs/nginx.access.log main;
    
    # rewrite / to https://
    location / {
            return 301 https://$host$request_uri;
    }
    # end of location / block

}
# end of decor server block