Deploy angular app on nginx from scratch | Deploying angular in nginx server on Windows

Поделиться
HTML-код
  • Опубликовано: 12 янв 2025

Комментарии • 22

  • @quannguyenhoang2481
    @quannguyenhoang2481 4 часа назад

    after watching this, I understand nginx too. Thanks you

    • @codippa
      @codippa  2 часа назад

      Glad to hear that

  • @tome.saviosavio6979
    @tome.saviosavio6979 4 месяца назад

    Great!! Finally I found a good tutorial that helped me

    • @codippa
      @codippa  4 месяца назад

      Thank You !

  • @bonefive6624
    @bonefive6624 9 месяцев назад

    Thank you so so much, you save my life!!!!!!🎉🎉 after spending 2 days of searching solution to host an angular app on Ubuntu, finally I found your video to setup the nginx🎉

    • @codippa
      @codippa  9 месяцев назад

      Great to know!

  • @katlegomogokonyane3663
    @katlegomogokonyane3663 11 месяцев назад

    Great content! I have app with base href of /report/ and when I deploy it to nginx I get issues related to MIME type of "text/html"

  • @yLuizv
    @yLuizv Год назад

    Very good. I was looking for it but I didn't find. Thank you so much

    • @codippa
      @codippa  Год назад

      Thanks..
      Hope it worked out for you !

  • @TSwamy-tn5vt
    @TSwamy-tn5vt Год назад

    Great Content !, Please do more videos on, how can we set headers and CORS while sending request to backend. Thanks in advance :)

    • @codippa
      @codippa  Год назад

      Thank you...
      Will try to make the suggested videos.

  • @DonGato8310
    @DonGato8310 Год назад

    Nice video, i have a error when load the app angular, the error is " Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec".

    • @codippa
      @codippa  Год назад

      Thank You...
      Try adding this line
      include mime.types;
      inside http block

  • @richardsanchezcaicedo274
    @richardsanchezcaicedo274 9 месяцев назад

    The images aren't load in ../demoapp/, why?

    • @codippa
      @codippa  9 месяцев назад

      Where are your images located. Probably they are in some folder for which there is no mapping in nginx.conf such as,
      location /images/ {}

  • @Diedigz
    @Diedigz Год назад

    Hi, what if have 2 angular projects in the same ngix server, do you know how to configure the .conf file? I have been triying without sucess

    • @codippa
      @codippa  Год назад +2

      You will have to deploy them in different folders such as app1 and app2.
      Then, configure the routes using 2 different location tags, such as
      location /app1{
      }
      and
      location /app2 {
      }
      And their index files will be accessible as per the mappings.
      This is practical since a single server can host multiple applications.

    • @Diedigz
      @Diedigz Год назад

      @@codippa thanks, it work with the next configuration for each project:
      location /projectN/ {
      autoindex on;
      try_files $uri$args $uri$args/ /projectN/index.html;
      }

  • @just_DIY
    @just_DIY Год назад

    Thank you !

  • @daniel__landgraf
    @daniel__landgraf 3 месяца назад

    not working!! i get a 404

    • @codippa
      @codippa  3 месяца назад

      It is a working example, please check the URLs that you have defined and the ones being accessed.
      404 means that the URL accessed is not available. Would be a mismatch somewhere.

  • @shivrajhulbatte7439
    @shivrajhulbatte7439 7 месяцев назад

    thank you