Giter VIP home page Giter VIP logo

#Nada #there is also a way to config nginx with two separet files each one of theme #have a server_name that works as a listner on the subdomain and make #those files symbloqiue link after server name just write the redirect or root server { listen 443 ssl default_server; listen [::]:443 ssl default_server; ssl on; ssl_certificate /etc/ssl/sahamsn.crt; ssl_certificate_key /etc/ssl/sahamsn.key; rewrite ^ĥttps://$http_host$request_uri? permanent;

    #root /var/www/html/boa_sn;
    # Add index.php to the list if you are using PHP
    index index.html;

    #BOA SN Backend
    location /api/v1 {
            return 301 https://zenit.sahamassurance.sn:4037/api/v1;
    }

    #INTOUCH SN Backend
     location /gateway {
            return 301 https://touchit.sahamassurance.sn:4000/gateway;
    }
    location /micro_users {
            return 301 https://touchit.sahamassurance.sn:4007/micro_users;
    }
    location /micro_params {
            return 301 https://touchit.sahamassurance.sn:4010/micro_params;
    }
    location /micro_simulation {
            return 301 https://touchit.sahamassurance.sn:4008/micro_simulation;
    }
    location /micro_contrats {
            return 301 https://touchit.sahamassurance.sn:4006/micro_contrats;
    }
    location / {
            #set $ptry  /index.html;
            if ( $host = zenit.sahamassurance.sn ){
                    root /var/www/html/boa_sn;
                    error_page 404 =200 /index.html;
            }
            if ( $host = touchit.sahamassurance.sn ){
                    root /var/www/html/intouch;
                    error_page 404 =200 /index.html;
            }
            #location / {
                    #try_files $uri /index.html;
            #}
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            #try_files $uri $ptry = 404;

     }

}

server { listen 80 default_server; listen [::]:80 default_server; return 301 https://$host;

}

https://docs.nginx.com/nginx/admin-guide/web-server/compression/

Kabil's Projects

awesome-javascript icon awesome-javascript

🐢 A collection of awesome browser-side JavaScript libraries, resources and shiny things.

dnb-stack icon dnb-stack

The Remix Stack for deploying to Vercel with testing, linting, formatting, structure and mock for 3rd party API integration.

pillar-ui icon pillar-ui

Pillar is a modern design system built with React, with the goal of providing a comprehensive set of reusable UI components that are fully accessible and adhere to best practices in modern web development.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.