NGINX Server Blocks | Host Multiple Websites On One Server With Single IP Address

Поділитися
Вставка
  • Опубліковано 6 вер 2024
  • Linux Server Video #3
    #Linux_Server #SnatchDreams
    This video demonstrates how too implement multiple websites on single server with single IP address using Nginx Server blocks ! Hope you find this video useful.
    Want to know how to create a simple Apache Web Server : PHP MySQL on Linux ?
    • Apache Web Server On L...
    Want to know how to host Multiple websites using Apache2 Virtual Host ?
    • Apache 2 : Host Multip...
    Buy me a coffee:
    imjo.in/bSQUvk
    www.paypal.me/...
    Hope You guys enjoyed this video!
    Thank you all for your great support !!
    Dont forget to subscribe
    Like us on : / snatchdreams
    Visit us on : www.snatchdream...
    SnatchDreams !!!

КОМЕНТАРІ • 35

  • @vjponc2
    @vjponc2 Рік тому +2

    From all the videos online, asking AI (gpt4), reading many blogs after 4 days.. You majestically explained exactly why I couldn't get my domains to work.. (Nginx/hosts).. You, my friend, are a superhero. May your good skills and soothing accent bring you much prosperity and luck with the ladies .. Thank you 🙏

  • @atishaygwari4341
    @atishaygwari4341 7 місяців тому +1

    bhai tu crazy developer hai !!! great job , meri internship bhi lele

  • @DangerZONEpixel
    @DangerZONEpixel 2 місяці тому

    So basically you should everyone how to make a LAN website. Amazing.

    • @catsNcode
      @catsNcode 2 місяці тому

      the only step left is to change the DNS for all those domains to point to one IP then set up reverse proxy

  • @RobbSnor
    @RobbSnor Рік тому +1

    Perfection, just what I was looking for

  • @mink3634
    @mink3634 10 місяців тому

    Thank you so much, I got stuck in the change hosts step, i didn't do that so can't complete my project. You help me so much~

  • @paulocesardasilva9119
    @paulocesardasilva9119 Рік тому +1

    Thanks ! Realy good exemple on Lab

  • @triangle1669
    @triangle1669 Рік тому +2

    Nicly Explained

  • @prerakmer455
    @prerakmer455 Рік тому +1

    So helpful video. Thank you so much for the upload.

  • @albertogarcia-ym1gt
    @albertogarcia-ym1gt 2 роки тому +1

    Perfect!! Thnks so much. Good video, well explained.👋👋👋

  • @_STF2023_the_camera.kinemaster

    Good video, but to me it is not working... I made this same way.... but the domains are not working...

    • @yourlinuxguy
      @yourlinuxguy Рік тому

      He forgot to mention that you have to add these lines in /etc/nginx/nginx.conf
      add these lines in the htpp block before the last brace.
      # location / {
      # root html;
      # index index.html index.htm;
      # }
      #}
      include /etc/nginx/conf.d/*.conf;
      include /etc/nginx/sites-enabled/*;
      }

  • @brianzablon7143
    @brianzablon7143 2 роки тому +1

    thanks..this really sorted me out

  • @Luis-mdv
    @Luis-mdv 2 роки тому +1

    Thank you so so much!!

  • @mamadoualiou4473
    @mamadoualiou4473 2 роки тому +1

    thanks so much for your tuto

    • @SnatchDreams
      @SnatchDreams  Рік тому

      You are welcome! Am happy you liked it.

  • @sankar_04
    @sankar_04 Рік тому +1

    Bro tell me that for Kali Linux commands and the creating way are same..
    Pls reply bro

    • @SnatchDreams
      @SnatchDreams  Рік тому

      Hi Bro 😇, the commands for this this will be exactly same for kali linux .. Could you contact me via mail snatchdreams@gmail.com and share the exact issue that you are facing while doing this 😇I will definitely help you

    • @sankar_04
      @sankar_04 Рік тому +1

      @@SnatchDreams thanks a lot bro.. 💖but I already solved the problem.
      If a got doubt in future I will contact u

    • @SnatchDreams
      @SnatchDreams  Рік тому +1

      Sorry for the late reply... Please feel free to contact bro 😇

    • @sankar_04
      @sankar_04 Рік тому

      @@SnatchDreams no prblm bro 💖

  • @TheGAMERBOY006
    @TheGAMERBOY006 3 роки тому +1

    🔥🔥

  • @yourlinuxguy
    @yourlinuxguy Рік тому

    My domain opens up on my machine but the content served is the default nginx welcome page, How do I fix this? I'm on arch linux.

    • @yourlinuxguy
      @yourlinuxguy Рік тому

      Video is outdated now, you have to include the config files path in the end of the http block.

    • @SnatchDreams
      @SnatchDreams  Рік тому +1

      Okay bro.. Will check and provide an update 😇 this is how we learn.. Thank for bringing it to notice 🥰

    • @yourlinuxguy
      @yourlinuxguy Рік тому

      Yep, always appreciate helping others.@@SnatchDreams

    • @yourlinuxguy
      @yourlinuxguy Рік тому

      And to be clear I'm talking about these lines.
      in /etc/nginx/nginx.conf
      In the http block
      # location / {
      # root html;
      # index index.html index.htm;
      # }
      #}
      include /etc/nginx/conf.d/*.conf;
      include /etc/nginx/sites-enabled/*;
      }@@SnatchDreams BTW love your content.

  • @armsonmunguluma3682
    @armsonmunguluma3682 Рік тому

    Thank you

  • @saint1yusuf
    @saint1yusuf 2 роки тому

    why am i getting 521 error?

  • @vaibhavpratap1325
    @vaibhavpratap1325 2 роки тому

    Very well explained but getting an error during sudo systemctl restart nginx

    • @SnatchDreams
      @SnatchDreams  2 роки тому

      What is the error u are getting bro 😇 it would say error some error is there in way in which we configured