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

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

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

  • @vjponc2
    @vjponc2 Год назад +3

    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 🙏

  • @DangerZONEpixel
    @DangerZONEpixel 4 месяца назад +1

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

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

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

  • @atishaygwari4341
    @atishaygwari4341 9 месяцев назад +1

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

  • @RobbSnor
    @RobbSnor Год назад +1

    Perfection, just what I was looking for

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

    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

  • @prerakmer455
    @prerakmer455 Год назад +1

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

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

    Nicly Explained

  • @armsonmunguluma3682
    @armsonmunguluma3682 Год назад +1

    Thank you

  • @albertogarcia-ym1gt
    @albertogarcia-ym1gt 2 года назад +1

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

  • @brianzablon7143
    @brianzablon7143 2 года назад +1

    thanks..this really sorted me out

  • @mamadoualiou4473
    @mamadoualiou4473 2 года назад +1

    thanks so much for your tuto

    • @SnatchDreams
      @SnatchDreams  2 года назад

      You are welcome! Am happy you liked it.

  • @Luis-mdv
    @Luis-mdv 2 года назад +1

    Thank you so so much!!

  • @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 💖

  • @_STF2023_the_camera.kinemaster
    @_STF2023_the_camera.kinemaster Год назад +2

    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/*;
      }

  • @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.

  • @TheGAMERBOY006
    @TheGAMERBOY006 3 года назад +1

    🔥🔥

  • @saint1yusuf
    @saint1yusuf 2 года назад

    why am i getting 521 error?

  • @vaibhavpratap1325
    @vaibhavpratap1325 3 года назад

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

    • @SnatchDreams
      @SnatchDreams  3 года назад

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