Skip to content
Snippets Groups Projects
nginx.conf.template 617 B
Newer Older
  • Learn to ignore specific revisions
  • FORESTIER Fabien's avatar
    FORESTIER Fabien committed
        # staging server is listening on the port 8080
    
    FORESTIER Fabien's avatar
    FORESTIER Fabien committed
        root /usr/share/nginx/html/;
    
    Matthieu Benoist's avatar
    Matthieu Benoist committed
            sub_filter '<html lang="en">' '<html lang="fr">';
    
        location /en {
            try_files $uri$args /en/index.html;
    
        # redirecting the /fr url to the new location of the fr build
        location ~ ^/fr(.*)$ {
    
    Matthieu Benoist's avatar
    Matthieu Benoist committed
            return 301 $scheme://$http_host$1$is_args$args;