Apache Virtual Hosts
Вставка
- Опубліковано 10 лют 2025
- 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
Just wanted to say that the pace and pitch of this video was absolutely perfect. Great Job!
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.
HE IS A DEMIGOD of teaching and clearing things without repeating things.
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!
I think I'm watching this tutorial for the fifth time this year. So much knowledge and good vibes from you. Thanks.
Such a clear voice. Amazing tutorial.
This is the video for you if you want to start learning apache! Well done, Jacob!
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.
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!
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.
Extremely thorough, well planned, and well presented video. Great work!
I learnt so much, I've been running servers for years and yet I still learnt so much. Thank you.
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!
Very best ever video talking about Apache web server, keep up the good work.
You should make a tutorial with Virtual Host with SSL (cerbot), thanks.
Excellent. Thank you. Beats fiddling with examples to figure out the nuances.
Thanks mate, You described it so well that I watched you doing it in Linux and then configured myself in windows.
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!
yes if could be and how we can convert a http to https other than using Let's Encrypt servers.
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!
Nice video. Everything explained in a simple manner. Very nice
It was long but left me confident, thanks
Great video! Explains everything clearly! Thank you for taking the time to make this video
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.
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!!!
Nice video - looking forward to the SSL version.
wow Jacob a lot of information and very specific......very good tutorial man!!!!!
Really nicely explained. Great job!
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.
Amazing video. Guilty as charged on copy and pasting staff from you :) it's now very clear. thanks men
Nice work as always, Jacob! Thanks for the thorough explanation.
Very good explanation. Thank you very much. Expecting more.
Holy moley! Thank you so much for making this! This really helped me implement multitenancy at my new job!!
You're an amazing speaker. And thanks for this.
So comprehensive. Thank you so much.
Excellent communication skills
I’m so glad I’ve found this. Thank you
Excellent tutorial Jacob!!! Thanks for sharing.
Pretty clarifiying a lot! Will there will be a lot more Apache2 Tutorials? Would be so cool, since never so that good explaining.
That was solid. Thank you.
This saved my ass and totally clarified Apache2 VH confs lol... Thanks! You earned a sub!
I should have seen this video first. Many thanks! ! !
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!
How much would it cost m for you to build me a direct Apache Https/D host for my website-- a site I intend to turn into a shareable "instgram" or "myspace" type sight? I know not cheap. Im IT. Please reply. Serious inquiry
Thank you for your time.
This was so terrific.
Thanks for the detailed video really helpful, appreciate the info!
thank you for this video. It is very helpful
wow, thanks alot for this awesome video!!
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?
what operating system are you using? looks so neat!!
thank you crystal clear
This is awesome. You are the best.
If this video ever goes away I'll never be able to set up a website again at this point lol
I've had videos that I had to keep referencing too, lol.
Awesome explanation. Thank you for existing
Thank you so much. it helped me to understand the stuff better.
honestly, a really good tutorial thank you very much!!!
Excellent! Thank you! SUBSCRIBED
great video! explains and wipes all my confusions... will you be amending this to include https?
Thank you! This is very helpful.
Got a question, how does this work when it's IP based at home? Since i've gotten a 2/2 fibre connection which should do fine for stuff like this.
I've got several things running on my network but mainly i want Nextcloud and Mattermost to work simultaneously with SSL/TLS (due to webcam/device access). My router forwards 80/443 to 192.168.1.2 ( hosts : Ubuntu 24.04 -> Nextcloud/adguard/wireguard -- Docker->Collabora/Unifi Controller/Portainer)
A VM 192.168.1.8 has Ubuntu 24.04 with Mattermost on nginx so have to try and get that to run on apache.
A VM 192.168.1.9 has Ubuntu 24.04 with Aapanel which i wanted to use for testing multiple websites/sub domains etc.
A 'NAS' Windows 11 enterprise on 192.168.1.10 that has Minecraft - Crafty controller on port 40404. (But isn't that important)
First i thought to run Aapanel as main server, but i can't import/run nextcloud within that panel nor mattermost and other things.
I'm wondering where to start?
very good tutorial...:) Nerd you are the one . No.1. Thanks a lot...:)
Thank you so much. 🌹🌹🌹
Nice video, wait for mail server tutorial 🙂
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.
so, theres no need to touch the resolv.conf file an rename your machine "/etc/hosts/"change hostname?
Amazing tutorial
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?
Great tutorial. Thank you so much 🙏
Great video. Can you please confirm what Linux, version and download site you ran on this demo?
9:00 15:00 Very helpful! Thanks.
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?
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.
how to tell apache to serve files from some additional folder along with document root
Nice content dude!
Thank you. It was very useful.
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
very good tutorial
Brilliant thank you :)
what if i want to access files from folder which is not there on apache installation drive. Means apache installation is on SSD and ond folder (since huge) is on another 1tb hard disk OS is Ubuntu. Pls guide. I have tried creating alias folder in httpd.config file.
Please make a video on how to load balance in tomcat using apache in windows cmd
good job
Is there a way to unlink my MacBook Pro from a virtual machine I am on. Man worked. on mine and put me a rom he also has me connected to local lan using my wifi connect, also has bluetooth ui server that is just a very few things that are connected to my pc or should I say I am connected to him.. I'm so sick of this he is in every device I have with subnet mask, My iPhones, iPad , HP desktop, Toshiba Laptop among other devices. Can you help me I think I am the virtual server for his stuff I think he has build websites
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?
Nice guide ;) maybe the next video will include ssl and proxy to maybe a rocket chat or Jetsi-meet anywal well done guide
Well Explained...
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.
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.
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
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.
if I have 1 IP (No domain) and multiple Laravel application ,How we can do it?
I did exactly what you said but it is still showing the default page.
Thank you for this video :D WELL Explained ;)
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 ?
Very useful 👍
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.
very nice video, please share video on https and ssl
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.
You're the best!!
Would love a video on ssl or proxies/load balancing. This video was great
Thanks a lot!
amazing
What would the config files look like if u didn't have a domain and you just had a vps ip address ?