How to deploy multiple websites in a single Nginx server | Virtual Host

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

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

  • @rafaelcamposerrano9311
    @rafaelcamposerrano9311 Год назад +8

    Very usefull, just what i need.

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

      Happy to hear that my video is helpful. Subscribe to this channel for more interesting and useful videos.

  • @abulaith4485
    @abulaith4485 Год назад +5

    The difference between your video and others, is your video shows how it is done in the industry while the others just explain the theory and show how nginx works.
    Thank you for your help. Great Video.

  • @mishaelmartinez8689
    @mishaelmartinez8689 Год назад +11

    You did a hell of a job explaining this. Good work

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

    I was struggling for days, Until I reach out to this video for enlightenment, thanks Sir!

  • @basavalingam
    @basavalingam Год назад +4

    Very well explained. It is very useful for beginners...

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

    Amazing, i really like these kind of explanations, that's what my secret to remain in the tech industry. Thank You 😊

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

    It was totally understandable video thank you for helping us all

  • @utayasurian419
    @utayasurian419 6 месяцев назад +1

    Very useful. Short and sweet. Thanks

    • @coderinboots
      @coderinboots  6 месяцев назад

      Thank you for the feedback. Please subscribe this channel for more videos.

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

    Best clean tutorial with complete steps.

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

    Thank you very much. You helped me understand how to proceed.

  • @armaan4529
    @armaan4529 11 месяцев назад +1

    In this tutorial you are serving static page what if i had a express server with backend how can i deploy multiple express apps?. A reply would be helpful

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

      The approach is the same. I have already created a video on this topic. Just create the required proxy entries within each virtual host. Please check the video below.
      ruclips.net/video/Vmb-B9Q_6V4/видео.htmlsi=FsVM_nJghPcu3HIC

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

    Super explanation sir! Can you also add two more things to this subject, two apps on two simple flask apps, and with different local ip or different ports

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

      It is already there. Please check my other videos. The topic is how to host multiple APIs behind a single nginx. Please subscribe to this channel for my future videos.

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

      Oh great! I thought they were two APIs on same endpoint/app but let me recheck now. Thanks so much!

  • @bala2222222
    @bala2222222 3 месяца назад +1

    very useful. Good work!😍

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

    this was very helpful. Thank you

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

    Just Amazing, Loved it 😍👌👌

  • @maheshnarayankar6515
    @maheshnarayankar6515 11 месяцев назад +1

    very detailed video thank you so much

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

    very good , I think you should make more on devops real time world

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

    Fascinating tutorial. Thank you loads

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

      Thank you for the feedback. Glad that the video is useful.

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

    Top video about this topic!

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

    nice video whats the app called with 2 computers you are tying the code in how do you get that ?

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

    Bro, This is liquid gold.

  • @GowriAyyanar-el3fn
    @GowriAyyanar-el3fn 8 месяцев назад +1

    host a multiple docker containers in nginx ,here nginx is a reverse proxy .could you please make a vidoe?

    • @coderinboots
      @coderinboots  8 месяцев назад

      Could you please elaborate on the topic in detail.

  • @031_nazmul_huda7
    @031_nazmul_huda7 Год назад

    awesome turorial, thanks for your great work

  • @matinsyed5123
    @matinsyed5123 11 месяцев назад +1

    Can you deploy the nextjs application using Jenkins in nginx server

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

    Very Good Tutorial

  • @-yaoshmite-1581
    @-yaoshmite-1581 Год назад

    Great video explanation!! If you can get a better microphone I bet your videos will get a lot more views

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

      Thank you for the feedback. I will get a better microphone and improve the quality.

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

    hello, I want to ask does it works with Multisite sub-directories?

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

      If you are referring to subdomains, yes. If not kindly elaborate the question.

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

      I mean does it work for WordPress Multisite sub-directories not sub-domains

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

      @@karimmourice244 - You can create virtual host with document root as the subdirectory. It will open the subdirectory directly instead of opening the landing page.

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

      thanks but do you have the script because i'm not from a technical background
      @@coderinboots

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

    sweet tutorial, i used google vm, ubuntu and nginx, domain is on namecheap, everything goes good till i make a SSL certificate with certbot, i opened the 443 port on vm, but somehow the site doesnt connect. could you help me with that. thanks

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

      Is the certificate generation successful. Are there any errors in the nginx logs. Check whether the nginx is set to listen request from all sources instead of just localhost.

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

      @@coderinbootsyes, no error in the error.log. How i can do or check this: "Check whether the nginx is set to listen request from all sources instead of just localhost."

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

      @@coderinboots yes, no error.log is empty. the default server is working, my custom was working before implemented the SSL certificate, my domain is in namecheap.
      how can i check or do this: Check whether the nginx is set to listen request from all sources instead of just localhost.

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

      Yes, and the error.log is empty, default site is working without SSL, and custom was working till i made the SSL.
      i got my domain on namecheap.
      How can i do or heck this: Check whether the nginx is set to listen request from all sources instead of just localhost

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

    Thank you! This helped me a lot.

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

    Hello, I have searched and searched RUclips for a tutorial on how to host multiple websites, some BIG youtubers has content about how it is done but your content is perfect, I love it. Can you do a tutorial on Ansible??

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

      Sure. I will plan this in my upcoming topics

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

    Very good tutorial

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

    This video is very help full for me.

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

    Excellent! Thank you

    • @PiyushGhosh-l4k
      @PiyushGhosh-l4k Год назад

      site A and site B pointing to same ip what does this means ?? can u explain this

  • @PiyushGhosh-l4k
    @PiyushGhosh-l4k Год назад

    can u make more videos on nginx .... like allowing certiain ips and denying certain ip and more of complex thing !!! thanks for great video

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

      Sure, I will create more videos on Nginx. I will create the content for IP address based access control and publish it soon.

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

      I have uploaded the video with this content. Please watch it. One more video will get published tomorrow that explains the automatic allow/deny rule configuration using fail2ban.

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

    Brother perfect explanation.. can you help on adding WordPress and also docker setup ..

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

      I will prepare a video on the deployment of wordpress on a linux machine. Please let me know the docker set up that you are looking for.

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

    Awesome vid thank you

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

    Brother, loved your video... no one creates well described videos like this nowadays and finding guys like you is rare

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

      Thank you for the feedback. Glad that the content is useful. Considering the RAM and cores in your server, you can directly run the app on the server and expose the endpoints through nginx proxies and virtual hosts. Let me know if you want more details on this.

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

      @@coderinboots Thanks a ton buddy

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

      @@lucifer3646 - I am on Instagram. You can also reach out to me via email also. coderinboots@gmail.com

    • @PiyushGhosh-l4k
      @PiyushGhosh-l4k Год назад +1

      site A and site B pointing to same ip what does this means ?? can u explain this . is it like if only from thoes ip if site A hit then only content will be served ???

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

      @@PiyushGhosh-l4k when you use nginx as a virtual host, you are basically telling nginx to route the requests that are received by it to the corresponding sites based on the domain name. Also, yeah since the request are received by nginx only single IP is used

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

    It was awesome, But please need the video for the renewal part through the cron job.

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

      I will add the video of cert renewal using cronjob soon.

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

      certbot -q renew --nginx
      Add this to the cronjob. The certbot will renew the certificates automatically.

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

    how to achive reverse proxy in nginxaas for azure webapps

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

      There is another video in this channel that explains the reverse proxy. Please watch this video.
      ruclips.net/video/hiqJ7zKnOuU/видео.html

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

    Great job!

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

    nice explaination..... but what if we create files in site-available will it work??

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

      Yes. It will work. In the nginx config, there is a line that considers any files present inside site-available and conf.d. We can configure any custom directory also for placing the configuration file

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

      @@coderinboots thanks for your reply. do you have any video or documentation for how add GoDaddy SSL certificate in same configuration file. and also looking for path based routing

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

    is this topic usefull for cyber security students?

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

      A cyber security student should be well aware of the web technologies, web servers, configurations etc. So this will be a useful understanding.

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

    awesome !!

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

    super

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

    Brilliant

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

    Hello, how can I get in contact with you please

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

      Please send an email to coderinboots[AT]gmail[DOT]com

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

    You are a cyber superhero, use your brilliant skills and sexy Indian accent to protect cyber Gotham

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

    I keep getting a 400 error