Apache Virtual Hosts

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • If you want to host multiple websites or web apps on the same web server, you're probably going to be using virtual hosts. Today, we're looking at the configuration syntax and behavior of virtual hosts in Apache httpd.
    ---
    Join the Nerd Club: nerdclub.nots.co
    Official website: nerdonthestree...
    Discord server: discord.nots.co
    Subreddit: / nerdonthestreet
    Facebook page: / nerdonthestreet
    Twitter feed: / nots_network
    E-Mail: jacob@nerdonthestreet.com
    Server management services: managedby.nots.co

ความคิดเห็น • 130

  • @Aryan21able
    @Aryan21able 2 ปีที่แล้ว +4

    HE IS A DEMIGOD of teaching and clearing things without repeating things.

  • @Corporatizm
    @Corporatizm 4 ปีที่แล้ว +39

    Oh my god thank you.
    Every second passing watching your video you clarified real world issues I had with servers due to lack of knowledge of VHosts.
    Got yourself a new subscriber for sure.

  • @udayarpandey3937
    @udayarpandey3937 4 ปีที่แล้ว +9

    Such a clear voice. Amazing tutorial.

  • @davidfally5449
    @davidfally5449 3 ปีที่แล้ว +6

    As an entry level System-Engineer: This was the most useful video for figuring out why my VirtualHosts overruled others. I never was told before, that they are loaded in order!

  • @michalroesler
    @michalroesler ปีที่แล้ว +2

    I think I'm watching this tutorial for the fifth time this year. So much knowledge and good vibes from you. Thanks.

  • @Borsting89
    @Borsting89 4 ปีที่แล้ว +12

    This is the video for you if you want to start learning apache! Well done, Jacob!

  • @shashankmarri1056
    @shashankmarri1056 2 ปีที่แล้ว +2

    This is one brilliant comprehensive video on Virtual Hosts. I was looking for such knowledge from more than 5 years. This a perfect video. Thank you very very very very much.

  • @masterwill2183
    @masterwill2183 3 ปีที่แล้ว +17

    You should make a tutorial with Virtual Host with SSL (cerbot), thanks.

  • @MikeL9143
    @MikeL9143 3 ปีที่แล้ว +2

    You made sense of virtual hosts for me more in 40mins than the Apache2 Definitive Guide did after several reads over several years - good stuff.

  • @FranciscoPower
    @FranciscoPower 2 ปีที่แล้ว +3

    Finally a video about this topic that explains everything clearly! A long video, but with no wasted time at all, very well done. Thank you!

  • @mattlopezdias
    @mattlopezdias 4 หลายเดือนก่อน

    I learnt so much, I've been running servers for years and yet I still learnt so much. Thank you.

  • @101redbaron
    @101redbaron 3 ปีที่แล้ว +2

    Outstanding! Love the errors in the video - some of them I'm calling them out, others I'm scratching my head till you explain what happened. Keep up the good work doode!

  • @santonopoulou
    @santonopoulou 6 หลายเดือนก่อน +1

    Extremely thorough, well planned, and well presented video. Great work!

  • @ramikilany9279
    @ramikilany9279 4 ปีที่แล้ว +3

    Very best ever video talking about Apache web server, keep up the good work.

  • @supernovapr0391
    @supernovapr0391 2 ปีที่แล้ว +1

    Thanks mate, You described it so well that I watched you doing it in Linux and then configured myself in windows.

  • @Pyxelles
    @Pyxelles 3 ปีที่แล้ว +3

    Thank you so much for the clear explanation on virtual hosts and the two types. I now have a clear understanding of what virtual hosting is all about. This is what a good tutorial looks like. As a Linux sys admin student this will help me with my project. Keep up the good work. I've subbed!

  • @CakestheCheese
    @CakestheCheese 4 ปีที่แล้ว +7

    Another great vid jacob! It's exactly what I needed. I would love to see a tutorial on reverse proxies with Apache2 if you're planning on doing one!

    • @ramikilany9279
      @ramikilany9279 4 ปีที่แล้ว +2

      yes if could be and how we can convert a http to https other than using Let's Encrypt servers.

  • @ansh1ta
    @ansh1ta 4 ปีที่แล้ว +4

    Nice video. Everything explained in a simple manner. Very nice

  • @Hans-fl2kn
    @Hans-fl2kn หลายเดือนก่อน

    It was long but left me confident, thanks

  • @tilla455
    @tilla455 2 ปีที่แล้ว +1

    Great video! Explains everything clearly! Thank you for taking the time to make this video

  • @richardroach45
    @richardroach45 4 ปีที่แล้ว +3

    Nice video - looking forward to the SSL version.

  • @1000left
    @1000left ปีที่แล้ว

    EXCELLENT explanation!!!! Lately I've been using Nginx but even though they have a very similar structure, I feel like Apache2 is much easier!!!! Thank you again!!!

  • @ramirez368
    @ramirez368 2 ปีที่แล้ว +1

    wow Jacob a lot of information and very specific......very good tutorial man!!!!!

  • @rokfam
    @rokfam 2 ปีที่แล้ว +1

    So comprehensive. Thank you so much.

  • @rakeshpk4991
    @rakeshpk4991 3 ปีที่แล้ว +1

    Very good explanation. Thank you very much. Expecting more.

  • @pythno1456
    @pythno1456 13 วันที่ผ่านมา

    Really nicely explained. Great job!

  • @QBelly
    @QBelly 3 ปีที่แล้ว +1

    You're an amazing speaker. And thanks for this.

  • @FrankZambaras
    @FrankZambaras 3 ปีที่แล้ว +1

    Nice work as always, Jacob! Thanks for the thorough explanation.

  • @arnaldoyuri1
    @arnaldoyuri1 4 ปีที่แล้ว +1

    Excellent tutorial Jacob!!! Thanks for sharing.

  • @LizzyCarlMain
    @LizzyCarlMain 3 ปีที่แล้ว +3

    thank you for this video. It is very helpful

  • @juliocclub6069
    @juliocclub6069 2 ปีที่แล้ว +1

    I should have seen this video first. Many thanks! ! !

  • @marcin6386
    @marcin6386 2 ปีที่แล้ว +1

    That was solid. Thank you.

  • @blmaa6330
    @blmaa6330 3 ปีที่แล้ว +1

    Pretty clarifiying a lot! Will there will be a lot more Apache2 Tutorials? Would be so cool, since never so that good explaining.

  • @pndungu1
    @pndungu1 2 ปีที่แล้ว +1

    Amazing video. Guilty as charged on copy and pasting staff from you :) it's now very clear. thanks men

  • @jeffdesouzadev2500
    @jeffdesouzadev2500 2 ปีที่แล้ว

    Holy moley! Thank you so much for making this! This really helped me implement multitenancy at my new job!!

  • @bowenfang5420
    @bowenfang5420 2 ปีที่แล้ว +1

    Excellent communication skills

  • @andrew121410
    @andrew121410 ปีที่แล้ว

    I’m so glad I’ve found this. Thank you

  • @MillionairesClub2023
    @MillionairesClub2023 3 ปีที่แล้ว +1

    So it looks for domainname/url of server during ssl handshake 1st packet.The field webserver/load balancer check to find which cert to respond with(when it host multiple webserver) is SNI-Subject name identifier.

  • @philmennenoh5946
    @philmennenoh5946 10 หลายเดือนก่อน

    Thank you for your time.

  • @DHClapp
    @DHClapp 4 ปีที่แล้ว +1

    This was so terrific.

  • @bevedel
    @bevedel 3 ปีที่แล้ว +1

    Thank you so much. it helped me to understand the stuff better.

  • @brandonlozano8114
    @brandonlozano8114 3 ปีที่แล้ว +1

    honestly, a really good tutorial thank you very much!!!

  • @greenwavemonster
    @greenwavemonster 2 ปีที่แล้ว +1

    wow, thanks alot for this awesome video!!

  • @avinamatya3892
    @avinamatya3892 2 ปีที่แล้ว +1

    thank you crystal clear

  • @rico7772007
    @rico7772007 4 ปีที่แล้ว +2

    I have to say , its a really good explanation of th apache server, thanks for that . Great work. As the previos comment , If you could explain reverse proxy on Apache in your own word ,it wuold be great. Specially ho to setup Next-cloud and this calendar issue on reverse proxy.

  • @HellhoundDieselCrew
    @HellhoundDieselCrew 3 ปีที่แล้ว +1

    Excellent! Thank you! SUBSCRIBED

  • @lovikim1637
    @lovikim1637 2 หลายเดือนก่อน

    This is the best video about apach2 server configuration. I just want to ask if where to learn the syntax or language in configuring the apache?Thanks!

  • @sidthetech7623
    @sidthetech7623 ปีที่แล้ว

    This saved my ass and totally clarified Apache2 VH confs lol... Thanks! You earned a sub!

  • @francisfernando4605
    @francisfernando4605 3 ปีที่แล้ว +1

    Great tutorial. Thank you so much 🙏

  • @taherr1341
    @taherr1341 3 ปีที่แล้ว +1

    This is awesome. You are the best.

  • @midnightmythos
    @midnightmythos ปีที่แล้ว

    If this video ever goes away I'll never be able to set up a website again at this point lol

    • @NerdOnTheStreet
      @NerdOnTheStreet  ปีที่แล้ว +1

      I've had videos that I had to keep referencing too, lol.

  • @MarcoAurelio-sv2tk
    @MarcoAurelio-sv2tk 7 หลายเดือนก่อน

    Awesome explanation. Thank you for existing

  • @kurniaramadhan1174
    @kurniaramadhan1174 4 ปีที่แล้ว +2

    Nice video, wait for mail server tutorial 🙂

  • @Winedineandrhyme
    @Winedineandrhyme 3 ปีที่แล้ว +1

    what operating system are you using? looks so neat!!

  • @NimaqAlizadeh
    @NimaqAlizadeh 2 ปีที่แล้ว +1

    Thank you so much. 🌹🌹🌹

  • @harrisngwenya4120
    @harrisngwenya4120 3 ปีที่แล้ว +1

    Thanks for this video bro,
    I am still new to digital ocean and I was wondering if you have done a tutorial on how to point a domain to a digital ocean droplet?

  • @theGrit_music
    @theGrit_music 2 ปีที่แล้ว +1

    Brilliant thank you :)

  • @omidsoleimani3817
    @omidsoleimani3817 3 ปีที่แล้ว +1

    Amazing tutorial

  • @jancatalinnicoara485
    @jancatalinnicoara485 2 ปีที่แล้ว +1

    very good tutorial...:) Nerd you are the one . No.1. Thanks a lot...:)

  • @arashghasemi610
    @arashghasemi610 3 ปีที่แล้ว +1

    very good tutorial

  • @linuxpc4me555
    @linuxpc4me555 2 ปีที่แล้ว +1

    great video! explains and wipes all my confusions... will you be amending this to include https?

  • @zaidnaeem5177
    @zaidnaeem5177 3 ปีที่แล้ว +1

    Well Explained...

  • @FelipeSGomes
    @FelipeSGomes 4 หลายเดือนก่อน

    Thank you. It was very useful.

  • @undergroundnews_dk
    @undergroundnews_dk 4 ปีที่แล้ว +1

    Nice guide ;) maybe the next video will include ssl and proxy to maybe a rocket chat or Jetsi-meet anywal well done guide

  • @karthiKeyan-lr9jx
    @karthiKeyan-lr9jx 3 ปีที่แล้ว +1

    good job

  • @ipv4subnet628
    @ipv4subnet628 3 ปีที่แล้ว +1

    Nice video but I wish you explained a little bit more about how to place everything into a live environment.

  • @neonomad673
    @neonomad673 3 ปีที่แล้ว +1

    hi :) I'm french and this is the 1st tutorial where I actually learned and comprehend sth about virtualhost. So Thank you very much. I have difficulties with ssl certificates. Do you have a tuto?

  • @gullitlevia787
    @gullitlevia787 5 หลายเดือนก่อน

    Great video. Can you please confirm what Linux, version and download site you ran on this demo?

  • @wozzyb3804
    @wozzyb3804 3 ปีที่แล้ว +1

    Thank you for this video :D WELL Explained ;)

  • @andrepiotrowski5668
    @andrepiotrowski5668 4 ปีที่แล้ว +1

    Thanks a lot!

  • @-jamiestorch-4562
    @-jamiestorch-4562 4 ปีที่แล้ว +1

    Hi,great channel btw.I have a question if u can help.I have been pentesting various routers by way of changing the lan settings for dns to point to an attacking computer on the network. Do you know if dnschef still works in cooking requests.Im getting the safebrowsing from google and the browsers,chrome and firefox refuse to connect.Ive seen alot of these dns change attacks are taking place.

  • @MR-vj8dn
    @MR-vj8dn 3 ปีที่แล้ว +1

    Yes this was helpful. Thank you for sharing. Considering subscribing. Please do not edit out future errors made by you like in this video. I learn from your mistakes too.

  • @AtifShafiinheritance
    @AtifShafiinheritance 2 ปีที่แล้ว +1

    amazing

  • @mohamedyoussef8835
    @mohamedyoussef8835 2 ปีที่แล้ว +1

    Awesome tutorial +++++++++++++++++++++++++++++ Thank You

  • @franciscog.4210
    @franciscog.4210 3 ปีที่แล้ว +1

    Hi Jacob, thank for this video, I have 2 pcs, pc1 has apache and some virtual hosts, when I call all those sites on pc1 works perfect, but pc2 only can see the default site, why the pc2 can't see all the virtual sites? what is the correct url that i must type on pc2?

  • @guruprasadhmathivanan4040
    @guruprasadhmathivanan4040 ปีที่แล้ว

    Please make a video on how to load balance in tomcat using apache in windows cmd

  • @lawalola8542
    @lawalola8542 ปีที่แล้ว

    i think you explain things quite well, what if you want to display make a single link to display a different page for each user based on the email parameter from the link, that is, i sent a link from my local expose and i want it to display a particular page for those using yahoo and another page for those using gmail and so on?
    GREAT VIDEO BY THE WAY

    • @NerdOnTheStreet
      @NerdOnTheStreet  ปีที่แล้ว

      What you're describing isn't possible via web server configuration alone. Your web server has no way to know what the email address is of someone clicking through a link in their email (certainly no reliable way.) It would be more feasible to script out how you're sending the emails-- you'd have to send a different version of the email to people using each email provider, with each version pointing to the desired page.

  • @asharneyaz7
    @asharneyaz7 10 หลายเดือนก่อน

    This was extremely helpful. The reasoning behind everything was explained beautifully. Could you also do apache with https? I have been trying that but simply could get it working. It works on server locally but when I try to surf the website from the another vm(client vm), the website never shows up on the browser. Ps: I have made custom vmnet for server and client vm for https demonstration. Any help or guidance would be much appreciated.

  • @davirezendemota
    @davirezendemota ปีที่แล้ว

    Nice content dude!

  • @MerlasPaul
    @MerlasPaul 6 หลายเดือนก่อน

    Yeah all good and dandy. Can you make a tutorial if we do not have any domains ? with the exact same thing but instead of subdomains it should be ip address but different folders for each path xD ? is it possible ?

  • @hs53
    @hs53 2 ปีที่แล้ว +1

    I would really appreciate if you would make a video on reverse proxy where apache receive traffic on 443 (Secure) and then send http (not secure) on another port and then the seocnd server respond back to apache and apache respond back to the client.

    • @NerdOnTheStreet
      @NerdOnTheStreet  2 ปีที่แล้ว

      I'm pretty sure I've covered this within a Nextcloud or Jitsi video before, it's just a few lines of configuration. I'll keep it in mind in case I ever do more Apache videos.

  • @cdeepiitbombay919
    @cdeepiitbombay919 ปีที่แล้ว

    how to tell apache to serve files from some additional folder along with document root

  • @vikassinha9515
    @vikassinha9515 2 ปีที่แล้ว

    Very useful 👍

  • @rossgeography
    @rossgeography 3 ปีที่แล้ว +1

    very useful video - very similar to nginx (apache prob the inspiration)

    • @rossgeography
      @rossgeography 3 ปีที่แล้ว

      nice on-purpose 'mistakes' mark of a true teacher ;)

  • @alakanandas6358
    @alakanandas6358 ปีที่แล้ว

    Consider this scenario, " You are configuring virtualhost directive both in main configuration file (apache2.conf) and in default virtualhost file (000-default.conf ), and suppose ip:port combination of the request is not matching any of the virtualhost directive (both in default virtualhost file and in the main server configuration. Then what will be request response?

  • @ioannisandreadakis9067
    @ioannisandreadakis9067 4 ปีที่แล้ว

    What would the config files look like if u didn't have a domain and you just had a vps ip address ?

  • @edgar-mmxxiii
    @edgar-mmxxiii 3 ปีที่แล้ว

    I did exactly what you said but it is still showing the default page.

  • @das_evoli
    @das_evoli 2 ปีที่แล้ว

    Wow this is really weird that it completely ignores the ServerName when it finds a virtualhost that fits the ip address

  • @RavikumarMittal
    @RavikumarMittal 3 ปีที่แล้ว +1

    very nice video, please share video on https and ssl

  • @herbervonsant5125
    @herbervonsant5125 3 หลายเดือนก่อน

    so, theres no need to touch the resolv.conf file an rename your machine "/etc/hosts/"change hostname?

  • @dolapojohnsonn
    @dolapojohnsonn ปีที่แล้ว

    You're the best!!

  • @bretonr
    @bretonr ปีที่แล้ว

    OMG! Thank you sm!!!! :)

  • @nunyabidness9895
    @nunyabidness9895 10 หลายเดือนก่อน

    9:00 15:00 Very helpful! Thanks.

  • @namename8986
    @namename8986 2 ปีที่แล้ว

    11:25 no it only works with symlinks

  • @Ramikelesli
    @Ramikelesli 2 ปีที่แล้ว

    if I have 1 IP (No domain) and multiple Laravel application ,How we can do it?

  • @tejasdevgekar
    @tejasdevgekar ปีที่แล้ว

    thanks a ton

  • @CarlosMiranda-jg2fs
    @CarlosMiranda-jg2fs 2 ปีที่แล้ว +1

    Like ring to finger Perfect! Impressive like steal kid’s candy 🍭

  • @shubhamgohokar4833
    @shubhamgohokar4833 2 ปีที่แล้ว

    Please make lets encrypt on apache 2 using Certbot also do cronjob scheduler to renew certificate

  • @alaahaider
    @alaahaider 2 ปีที่แล้ว

    Hi and thank you for the tutorial, I followed it but I have a problem. My WordPress site doesn’t work when Requested via https and only work with http. I have check the firewall rules and directory permission but I can’t find what I am doing wrong. Can you please help? Thank you in advance.

  • @alexdalton5963
    @alexdalton5963 3 ปีที่แล้ว

    I’m battling with virtual hosts. If I put the document root as /var/www/html/abc (abc the directory) when I type the domain name of abc it’s not working. Must I have the directory as /var/www/abc. If I type the web address then /abc I get to the page but that’s annoying bigger issue is 3 virtual hosts and all mixed till I added / after domain. I’m trying to get 4 application servers working for educational purpose