Apache Server | Setup Virtual Host on Ubuntu Server 20.04

Ғылым және технология

What's up Linux Community!!! In this video I walk through setting up Apache virtual hosts in Ubuntu 20.04. Using Apache, an administrator can set up one server to host multiple domains or sites off of a single interface or IP by using a matching system.
Apache Server: ubuntu.com/server/docs/web-servers-apache
Please enjoy the video and if you have any questions, leave a comment down below. My goal is to expand the Linux community.
Remember to Like, Share and Subscribe if you enjoyed the video!
Also if you want to support the channel you can send donations to my CashApp: cash.app/$KeepItTechie
✔️SOCIAL NETWORKS
-------------------------------
KeepItTechie: keepittechie.com/
Facebook: KeepItTechie
Twitter: keepittechie
Instagram: keepittechie
Discord: discord.gg/RjZWuyd
CashApp: cash.app/$KeepItTechie
Patreon: www.patreon.com/KeepItTechie
--------------------------------
#Linux
#Apache
#Ubuntu
#KeepItTechie Support the channel via Coin
Bitcoin Address:
bc1qgxzq9ck5nhud8ekmpt46l9u5gn3ty5w9n6mmd4
Ethereum Address:
0xb8fC845963893644EEF435552F2B6bd30Ad012E3
XRP Address:
rKrUvWFT7hVtD5JCcCY9s2HFQZ5UHViLD
Litecoin Address:
LNfWvkcFVfKZXJV28dzU9g7FQ7FYtg5cFg
Dash Address
Xu4VgqCkN4d1JKfzdjMNdb63Mfup3Cmnqx
Zcash Address
t1fqyxF3pFtRDuz2Vprt4m5pXWa8rs97Swr

Пікірлер: 212

  • @hozay6552
    @hozay6552 Жыл бұрын

    I have been spending hours in how to connect to my apache server from my other computers. All I needed was the firewall.. you are a LEGEND! Thank you so much for bringing in the firewall ports!

  • @KeepItTechie

    @KeepItTechie

    Жыл бұрын

    No problem! Glad I could help!

  • @lihlemgugudo664
    @lihlemgugudo664 Жыл бұрын

    i was 13 mins in, had a crazy big smile on my face because this man is absolutely incredible. explains everything in an easy to understand way, been looking for a video to explain this to me, doesn't get any better then this👏

  • @KeepItTechie

    @KeepItTechie

    Жыл бұрын

    I appreciate that! I just try to make things simple for new users! Thanks!

  • @caseykreicar
    @caseykreicar4 жыл бұрын

    I learned more in the first 6 mins than most other videos out there on apache, you explain everything very well! I'm subbed!

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Thanks man! 💪🏾💪🏾

  • @lord-baltimore
    @lord-baltimore4 жыл бұрын

    This video is so crisp and clear, the way you are teaching is fantastic! Thanx!

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Thanks man! I appreciate it! I'm trying to make the quality better everyday!

  • @GameOver-tk2gy
    @GameOver-tk2gy2 жыл бұрын

    MY SYSTEM FREEZE UP AS WELL BUT THANK YOU FOR THIS TYPE OF CONTENT I'M SPEECHLESS ....GREAT WORK.@KEEPITTECHIE YOU GUYS ARE DOING .....GREAT WORK AND THANK YOU AGAIN.....BLESSING BE. ON TO U 4 EVER !!!!!!

  • @justawfulgamer7738
    @justawfulgamer77384 жыл бұрын

    Such an underrated channel. Keep up the great work.

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Much appreciated!

  • @allan-glasier
    @allan-glasier3 жыл бұрын

    Awesome video man! Thank you for explaining everything, I feel very comfortable with this stuff now!

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Glad to help! Thanks for watching!

  • @Madmenafternoondelig
    @Madmenafternoondelig4 жыл бұрын

    Thank you for taking the time to explain what your bash commands were doing

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    No problem! I appreciate you checking out the video and my channel! Thanks!

  • @Toxik_Tobi
    @Toxik_Tobi Жыл бұрын

    Thank you soooo much! Basically every tutorial I found was outdated or missed something. This one just worked!

  • @jansaldana5156
    @jansaldana51563 жыл бұрын

    Best explanation i've seen about this in youtube. Thanks bro for the video, you have a new sub! Greetings from Barcelona, Spain

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Thanks! I appreciate that!!

  • @festimgashi9533
    @festimgashi9533 Жыл бұрын

    Such a simple and great explanation. I hope i could find videos with this level of accuracy for other things to learn 👏👏👏

  • @iameddieeuk5450
    @iameddieeuk54502 жыл бұрын

    Thank you so much. Most other videos were so hard to understand but you explained it so well 😁 👍👍

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    You're welcome 😊

  • @danielmajer1648
    @danielmajer1648 Жыл бұрын

    Man, you explained and walked through thousands of times better then my professor. Thank you! Here goes the sub n like!

  • @KeepItTechie

    @KeepItTechie

    Жыл бұрын

    Awesome, thank you!

  • @lucasdiniz4547
    @lucasdiniz45472 жыл бұрын

    I was very lost in my first time setting up a virtual machine host, but this video saved me, thanks!

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    Glad it helped!

  • @willtoulan
    @willtoulan2 жыл бұрын

    Bro thank you so much this video had all the info I need. You do a great job explaining everything.

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    My pleasure!

  • @ashishdabas5241
    @ashishdabas52413 жыл бұрын

    i was trying to host my website from three days day and night saw a lot of videos but all are useless infont of this tutotial it helped me a lot keep ot up bro

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Thanks for the kind words! I'm glad it helped!

  • @d_sportello
    @d_sportello10 ай бұрын

    Thanks mate, you made it clear!

  • @francisfernando4605
    @francisfernando46053 жыл бұрын

    Yo my man Thank you. Keep It Techie brother. With respect from Sri Lanka

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Appreciated

  • @BigSnowLife
    @BigSnowLife2 жыл бұрын

    Mate, thx a lot! One of the best tutorials ever

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    No problem. Thanks!

  • @jordanevince5536
    @jordanevince55362 жыл бұрын

    Hi I thank you so much for your video. Keep it up ! I

  • @greggriffith8593
    @greggriffith8593 Жыл бұрын

    My virtual host site is up & running. Thanks to your instructions and guide. I am able to connect withing the same server, but still unable to connect from outside. I am working on my router port forward/tunnel to obtain the remote access needed. Thanks again for your instruction, as I am one "major" step closer to completing.🙏

  • @KeepItTechie

    @KeepItTechie

    Жыл бұрын

    Glad it helped

  • @robertreinhard8953
    @robertreinhard89533 жыл бұрын

    Thank you. Well done and very clear on your instructions.

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    You are welcome!

  • @oussamabenrejeb2751
    @oussamabenrejeb27514 жыл бұрын

    thanks the best explanation i have ever seen keep it up my men

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    No problem bro!!

  • @networkingasahobby3887
    @networkingasahobby38873 жыл бұрын

    Very clear explanations. Thanks!

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Glad you enjoyed it!

  • @Mikeclemons1
    @Mikeclemons14 жыл бұрын

    I really appreciate this tutorial. I work with Apache server in a linux environment

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    You are welcome!

  • @it-expat-china
    @it-expat-china2 жыл бұрын

    Well explained, many thanks!

  • @frankthetechtank
    @frankthetechtank2 жыл бұрын

    Brother... I watched a different video on setting up virtualhost and it was totally f!@#ed. after watching this, it works now!! Thank you!!!

  • @bawbee27
    @bawbee273 жыл бұрын

    This is incredibly helpful

  • @MrRetroVinyls
    @MrRetroVinyls2 жыл бұрын

    this was really helpful! Thank you

  • @chizytony315
    @chizytony3153 жыл бұрын

    Best explanation ever, thanks man 👍

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Thanks again bro! Please sub if you haven't!

  • @elias-9395
    @elias-93953 жыл бұрын

    Excellent work. Thanks a lot my friend.

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    No probs!!

  • @awframpton
    @awframpton4 жыл бұрын

    Nice comprehensive guide!

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Thanks for watching!

  • @leonardoreacaoinformatical2268
    @leonardoreacaoinformatical22684 жыл бұрын

    Muito Bom . Mairipora - São Paulo Brasil

  • @resysysty
    @resysysty3 жыл бұрын

    Thanks for the video brotha!

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    No problem fam!! Thanks for the support!

  • @isaacmaag1294
    @isaacmaag12942 жыл бұрын

    Amazing video!

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    Thanks man!

  • @mirceamarghitas1046
    @mirceamarghitas10463 жыл бұрын

    thanx man straight to the point...

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Thanks bro!

  • @rakeshpk4991
    @rakeshpk49913 жыл бұрын

    Concise explanation. Thanks.

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Glad it was helpful!

  • @nopetoyou8493
    @nopetoyou8493 Жыл бұрын

    thanks for your helpful tutorial (:

  • @strycinek
    @strycinek3 жыл бұрын

    Thanks man, it helped a lot

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Glad it helped! Thanks for watching!

  • @ryanjonbrown
    @ryanjonbrown2 жыл бұрын

    Nice video. Very helpful

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    Thanks 🙏🏾

  • @EKBShorts
    @EKBShorts3 жыл бұрын

    thankyou you are a legend bro helped me a lot, :)

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    No problem 👍

  • @quindarius
    @quindarius3 жыл бұрын

    great vid man!

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Thanks bro!

  • @CubaPavel
    @CubaPavel Жыл бұрын

    Thx a lot man!

  • @KeepItTechie

    @KeepItTechie

    Жыл бұрын

    No problem!

  • @muhdbunahmad
    @muhdbunahmad3 жыл бұрын

    Great video. Keep it up.

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Thanks, will do!

  • @keyzaccord1774
    @keyzaccord1774 Жыл бұрын

    I see you brotha!!!

  • @ithelpers4625
    @ithelpers46254 жыл бұрын

    Brill Thanks Man

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    No problem 👍 I appreciate you watching!

  • @BMAPS
    @BMAPS4 жыл бұрын

    You earned a subscriber, sir!!!

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Thanks!!

  • @BMAPS

    @BMAPS

    4 жыл бұрын

    @@KeepItTechie Hello, I tried this method to launch site today but it is showing site can't be reached. what may be problem?

  • @ayoubahsheriff9561
    @ayoubahsheriff95613 жыл бұрын

    Thanks bro!

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    Any time

  • @r_a_m_ji8358
    @r_a_m_ji83582 жыл бұрын

    enlightening

  • @emersonsantos4372
    @emersonsantos43723 жыл бұрын

    Mano, ajudou para caralho, vlew!

  • 3 жыл бұрын

    Thanks, configured a local webserver for development

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Great, glad I could help!!

  • @reymonddomingo4412
    @reymonddomingo4412 Жыл бұрын

    I've been scratching my head for the whole day setting up my laravel app in nginx and still having errors. but this ran the first time T___T thanks bro!

  • @KeepItTechie

    @KeepItTechie

    Жыл бұрын

    No problem bro! Really glad I could help! 💪🏾💪🏾

  • @Arkayaplays
    @Arkayaplays4 жыл бұрын

    NICE

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Thanks

  • @CribsNL
    @CribsNL4 жыл бұрын

    thnx mate, very helpfull...

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Glad it helped

  • @CribsNL

    @CribsNL

    4 жыл бұрын

    @@KeepItTechie just wonder why you use 'apt' and im used to using 'apt-get' is there a difference?

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Apt was release a couple years ago to shorten the apt-get command. I can't remember when apt was released, but apt-get still works. Also apt-get is still needed because it still has more functions from apt, from what I remember. Check out the man page for both.

  • @melkamualmawu
    @melkamualmawu2 жыл бұрын

    well explained

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    Thanks!

  • @brixtongun
    @brixtongun3 жыл бұрын

    good info bruh

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Appreciate it

  • @SilVer-hu2ps
    @SilVer-hu2ps2 жыл бұрын

    Subbed

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    Thanks fam!

  • @milan3693
    @milan36932 жыл бұрын

    Hey mate Thanks for the video, very understandable. I followed every step but now i dont understand the last one: How can I configure my router to make the website visitable? Its actually the one step you didnt show. Do I have to go into my router settings and do something there? Thanks,

  • @msplifestyles
    @msplifestyles3 ай бұрын

    Hello sir I have all the comments and it works properly without any error but while running on Firefox it's showing error

  • @lakatosgabor5410
    @lakatosgabor54103 жыл бұрын

    Heey Man! Thanks the tutorial! I have a question! Cen I host Laravel app with method?

  • @MrCmp2390
    @MrCmp2390 Жыл бұрын

    ✊🏾

  • @HFSYung
    @HFSYung3 жыл бұрын

    Great Vid, now just add a vid for let's encrypt to use 443 iso 80/8080.

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Yeah that will be hard being that my isp blocks port 80. I will try to make a video on let's encrypt using a Google instance in the cloud.

  • @hadeseye2297
    @hadeseye22973 ай бұрын

    9:09 "Let's go cd, et cetera." ;) Mate. It's et cetera not etc. ;) Thanks for your work my lad.

  • @dackeos3098
    @dackeos3098 Жыл бұрын

    how do i view my page if i dont have a domanin bought what do i type in the browser?

  • @danielyount9812
    @danielyount98124 жыл бұрын

    Would be cool if you continued a LAMP stack series with setups for page markup or PHP/Mysql Mediawiki or Wordpress CMS or even Node.js or Python and Django CMS. You talked briefly about a2enmod , which is needed for PHP and MYSQL modules and rewriting header info(mod rewrite) also would be nice to show when tweaking parameters like concurrent servers, fast cgi, turning off specific options and test them against "ab"(apache benchmark) command or check config with Ubuntu "apache2ctl" aka on Redhat based systems "apachectl" and the port 8080 is usually called the proxy port. Which is also good for subverting Internet companies block on port 80, as you mentioned. So you can setup a mirror of your real site or sites remotely to test or backup.

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Thank you for watching. You make some very great points and I appreciate the feedback. I am looking at incorporating some of the things you suggested in future videos.

  • @fortebooks4595

    @fortebooks4595

    4 жыл бұрын

    I followed this tutorial but I can't get the test sites to show on my local network. I have a server set up on my gigabyte brix and I use my laptop as a client. I am trying to host 2 websites on the server as demonstrated in your video but no matter what I do, when I test the web pages on my Laptop, they will never open. What I can only see is the default Apache page when I type my server's IP address on my laptop. Is there anything wrong with my server or the laptop?

  • @danielyount9812

    @danielyount9812

    4 жыл бұрын

    @@fortebooks4595 You have to remember he set the proxy address to 8080. So you have to not only type in your ip address , but your proxy port. 127.0.0.1:8080 or your ip, what ever that maybe i.e 192.168.1.4:8080

  • @jockfaire

    @jockfaire

    10 ай бұрын

    i tried this but i am getting the "Unable to connect" error message @@danielyount9812

  • @alirezazolfaghar2724
    @alirezazolfaghar27242 жыл бұрын

    what should i do for localhost thik of "localhost/a" and "localhost/b" how to config virtualhost?

  • @jockfaire
    @jockfaire10 ай бұрын

    i followed all the steps in this video but i am still getting the Apache2 default page and not the index.html file i created when i go to load the webpage. What am i missing?

  • @easytechnology2641
    @easytechnology26412 жыл бұрын

    big bro

  • @gerardokolie1829
    @gerardokolie1829 Жыл бұрын

    I followed your exact steps, but i keep getting timed out when i try to use the curl command on the webpage. Pls help

  • @ToraoTakabe
    @ToraoTakabe2 жыл бұрын

    You also need to add line "127.0.1.1 $ServerName" to etc/hosts file.

  • @vernonconnors3470
    @vernonconnors34703 жыл бұрын

    I'm trying to get Apache2 to run on Ubuntu 20.04 and for some reason it keeps bringing up the default page when I access my webpage externally. Also it won't let me use my domain name to look at my actual page. Any help you might have would be great.

  • @rplatotech

    @rplatotech

    Жыл бұрын

    Same issue, here. Did you find any solution?

  • @traeldor
    @traeldor4 жыл бұрын

    I'm impressed. You've taken me thru in 20 minutes more than the class/school I paid real money for. thank you for that. ONly problem is that you blew by a very important part at the end. I've got the website html all set up. apache2 loaded and activated. the .com.conf is set up, installed and save. I've got the port forwarding set up on my router( I think), for forwarding is set to # Service Name External Start Port Internal Start Port Internal IP address HTTP 80-80 80-80 192.168.1.3 I dont think that I need to use port 8080 on my isp, and I've created an html index.html file similar to yours in side my /var/www/. apach2 reloaded, active, domain name pointed to, what am I forgetting? I went step by step thru your vid. Permissions all set(755). My browser window (firefox, I'm on Debian10 Buster, ssh connected to ubuntu20.04 server on a separate computer system) browser window still says site can't connect. I've gone thru the process from installation, to apache2 set up from your vids, twice, and even tried port 8080, and still can't get it to work. any ideas?

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    It could be a few different things and its kind of hard for me to help you in the comments. Join my discord server and I'll try to help: discord.gg/YEGTeN

  • @traeldor

    @traeldor

    4 жыл бұрын

    @@KeepItTechie installing discord now

  • @rljpdx
    @rljpdx3 жыл бұрын

    ls -ld /var/www is a better way to check perms in a directory. ;)

  • @mylondoncorner
    @mylondoncorner2 жыл бұрын

    You deserve a Lambo

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    Thanks for the kind words! 😎

  • @reinayang4708
    @reinayang47083 жыл бұрын

    When I tried to open the domain on the chrome. Somehow it said " This site can't be reached.DNS address could not be found. " How can I fix this? 😭

  • @TrouvatkiDePercusion

    @TrouvatkiDePercusion

    2 жыл бұрын

    Same. I can't figure out what the problem is.

  • @TheGarageboyz
    @TheGarageboyz2 жыл бұрын

    Hi. What mardown language were you referring to?

  • @user-xt3zy5fm4o
    @user-xt3zy5fm4o8 ай бұрын

    I follwed the exact same step that you did but didget any results

  • @ahsanhabibkhan6217
    @ahsanhabibkhan62173 жыл бұрын

    How do I connect to a server visa SSH? U mentioned something about it @ 1:20 I have a VM with ubuntu installed on it and I am unable to understand what you mean via SSH .

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    SSH is an application that allows you to connect to a remote server from the command line. Most Linux server when you install has OpenSSH server installed by default. You can use your user account to log in. Check out my video on where I briefly cover it. kzread.info/dash/bejne/iKqlrJehitHWepc.html

  • @Dunno333
    @Dunno3333 жыл бұрын

    Not sure if I'm in the right place here, because the video is about web servers and I only want/need to access my server on my local (home) network. I got an old desktop running Ubuntu, which I want to use to run Plex, Nextcloud and Pi-Hole. Do I need to configure Apache (as explained in the video) to make it possible to reach the services (like to reach the admin panels that can be reached through a web browser)? To be clear: I'm not looking for a way to connect to these sites (the admin panels and such) from another network then my home network.

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    So sorry for the delay! I have a couple videos that walk through the process of setting up Plex and Nextcloud. Pi Hole is not that difficult and I can make a video on the setup.

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Plex: kzread.info/dash/bejne/gWyT2Nl6YJbPh5c.html Nextcloud: kzread.info/dash/bejne/o5xl2Zute9etppM.html Let me know if you have any question.

  • @simpleman1496
    @simpleman14963 жыл бұрын

    Hello I have this error when I enter the url Unknown Host Description: Unable to locate the server named "" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again

  • @reinayang4708

    @reinayang4708

    3 жыл бұрын

    Me too. I need help 😭😭

  • @ways2560
    @ways25602 жыл бұрын

    Very easy to follow tutorial, I was able to follow every step without error but at the end when I tried to access the created website I got error page "Unable to connect", what I might be mistaken? Thank you.

  • @jockfaire

    @jockfaire

    10 ай бұрын

    Same thing with me. I can't access the created webpage.

  • @diegomanzanares7153
    @diegomanzanares71532 жыл бұрын

    Hi there! Nice and explicative video, but having configured port forwarding in the router and domain.conf files, my webpage won´t load on the browser with 402 error. Any idea on why this might be? Thanks

  • @diegomanzanares7153

    @diegomanzanares7153

    2 жыл бұрын

    Okay, so now I got to the point where I can resolve those names just from the VM I´m working with but when I try to resolve those names from another PC on my network or an external network I still get this error.

  • @fortebooks4595
    @fortebooks45954 жыл бұрын

    Thanks for the tutorial. I have a server set up on my gigabyte brix and I use my laptop as a client. I am trying to host 2 websites on the server as demonstrated in your video but no matter what I do, when I test the web pages on my Laptop, they will never open. What I can only see is the default Apache page when I type my server's IP address on my laptop. What am I doing wrong?

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Sorry for the delay. Did you check the firewall? Try using the ip.

  • @fortebooks4595

    @fortebooks4595

    4 жыл бұрын

    @@KeepItTechie I finally discovered that I have to set up the hosts on the Laptop too. Thanks for the follow up

  • @CribsNL
    @CribsNL4 жыл бұрын

    Strange i fallowed your instrutions to the letter, but somshow my 2 host, are showing 1 content. They have seprate conf files, They are both activated And they both point to a defrent folder structure with defrent index.html files.

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Without seeing everything I can't really help you troubleshoot this problem. If you can please join my discord and I can try to assist you. discord.gg/vqPtFW

  • @CribsNL

    @CribsNL

    4 жыл бұрын

    @@KeepItTechie Thank you for replying, i found it, because i send the 2 domeins to the same external ip adres of my home router, it doesnt know wich site it comes from. So i let 1 of the 2 site be send on a defrend port number. Then i put that port in the Host of apache2 config and open the port on ufw. This worked for me.

  • @chizytony315
    @chizytony3153 жыл бұрын

    I just learned Linux from Ice Cube... LMAO

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    LOL Thanks for watching bro! I hear that all the time!

  • @goadane6897
    @goadane68974 жыл бұрын

    Aloooha ; Great video.. Would you help me. I use rasp pi , your set up multiple web sites on apache ; I don't have domain names. how do I check the second website i created i have the one that comes with apache2 I named the second "with your set up" html2 ? I would appreciate your help . Thank you for your time.

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Sorry I missed your post! Are you still having this issue?

  • @theafricanboss
    @theafricanboss3 жыл бұрын

    I have plesk, the control panel, and I am trying to add a domain but not to the control panel but outside like what u did, but the problem, it defaults to the control panel default page instead. It's like the control panel, Plesk, is overwriting sites-enabled and sites-available, let me know how I can bypass. The reason I am trying to bypass the control panel is because it limits to 3 domains on the free account btw

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    I'm so sorry but I am very unfamiliar with Plesk. Based on what I saw after reading about it, it look as thought this is similar to c-panel. They probably have controls in place to prevent people from going around their settings. I'm not 100% sure though. I'll search a little more.

  • @theafricanboss

    @theafricanboss

    3 жыл бұрын

    @@KeepItTechie yes it’s like cPanel, just cheaper but also limited to only 3 domains. Anyway, I just created another droplet dedicated to the command line way until I become more advanced in the future to go around their settings

  • @imanebenrazzouk9738
    @imanebenrazzouk97382 жыл бұрын

    i'm sorry but what do you click on after copying the text (bluffer) i've been trying to figure it out for a while thank you

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    I basically right-clicked in the terminal windows and clicked paste. For some reason OBS wasn't capturing the menu when you right click.

  • @imanebenrazzouk9738

    @imanebenrazzouk9738

    2 жыл бұрын

    @@KeepItTechie hey thank you so much for responding but after you paste what do you do to save it and go back to terminal i tried ctrl O.

  • @ioannisandreadakis9067
    @ioannisandreadakis90673 жыл бұрын

    what if you don't have a domain name and you access your site with your vps ip address (it's for testing) , what do u put as ServerName and ServerAlias cause i am following the guide but it wont work for me :(

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    It doesn't matter what you put there if thats the case. The configuration takes over once the domain name is translated to the IP address of the server by DNS, which you don't have. You can put www.example.com. In order to get to the site, you need to specify the folder on the server. Example 179.20.35.105/site_folder_name

  • @ioannisandreadakis9067

    @ioannisandreadakis9067

    3 жыл бұрын

    @@KeepItTechie Thanks for the quick reply , not sure what i do wrong but i have performed the exact same steps like 10 times and i can only get to load the first site. i am sure i do everything correctly. If i change the DocumentRoot on my site1 .config to w/e of the two sites i have on var/www/site1 or site2 it works for both of them but i cant seem to make both configs to work at the same time , only one config seems to be working and i have both enabled.

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    @@ioannisandreadakis9067 Verify that the configuration file is in the sites-enabled directory for site2. Sometimes it doesn't create a symbolic link to the configuration file you created. Therefore you have to manually create the link. See ln command man page. Also, you may have to change the server name and alias to something different. Try example1.com for site1 and example2.com for site2. It may be getting confused.

  • @aproudkafir7459
    @aproudkafir74592 жыл бұрын

    Great content bro, its really very informative. Just one question, suppose if i host this site on my laptop running linux server and I try to access this site from my mobile device connected over same wifi network. Then will the site be accesaible?

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    Yes, it will be accessible within the same network from any device.

  • @aproudkafir7459

    @aproudkafir7459

    2 жыл бұрын

    @@KeepItTechie Thanks for the info.

  • @TrouvatkiDePercusion
    @TrouvatkiDePercusion2 жыл бұрын

    Is this not working for anybody else? I can't access the websites through the browser like he can.

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    You probably have to modify your host file. If you have more then one website, the server doesn't know what website to serve you.

  • @MadBroStudio
    @MadBroStudio3 жыл бұрын

    Hey, Great video. I followed this though and my virtual hosts give an SSL error. Would I just set up a cert again to fix this?

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    That most likely has to do with your browsers. Most browsers now a days default all request as https protocol. Since you most likly don't have a ssl cert installed on the server. Try removing the "s" and use http.

  • @MadBroStudio

    @MadBroStudio

    3 жыл бұрын

    @@KeepItTechie This fix works :) I am in a corporate environment though and all subdomains are required to be https. I used letsencrypt to add a cert for the subdomain, but it didn't seem to do anything

  • @TrouvatkiDePercusion

    @TrouvatkiDePercusion

    2 жыл бұрын

    @@KeepItTechie Doesn't work for me. Still getting the error message saying that the browser is "having trouble finding that site"

  • @nikhilev3840
    @nikhilev38403 жыл бұрын

    Hi this was very informative video.. but I have another requirement to add sub wild character domain.. like xxx.example.com.. can we do so? If yes how?

  • @nikhilev3840

    @nikhilev3840

    3 жыл бұрын

    Load same site whatever the sub domain is

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    You have to create a separate virtual host file for each sub-domain and map it to the directory.

  • @nikhilev3840

    @nikhilev3840

    3 жыл бұрын

    Thanks for the reply. But will it affect the performance if there are say 1000s of host files there?

  • @ivangarmaz4848
    @ivangarmaz48483 жыл бұрын

    Do I need static IP for this to work?

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    If you want to access it from outside your network, I recommend that you should have a static IP. Most ISP's don't change your router IP as much anymore. The only time you will receive a new IP from your service provider when the router/modem is rebooted. It will work but you have to update your domain name every time your IP changes.

  • @ivangarmaz4848

    @ivangarmaz4848

    3 жыл бұрын

    @@KeepItTechie Thank you so much💪💪

  • @robinelzinga8772
    @robinelzinga87723 жыл бұрын

    I just can't do it great tutorial i'm just bad at Linux I guess. :(

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    Join my discord server. Somebody maybe able to help you. discord.gg/2A2u4qDZed

  • @robinelzinga8772

    @robinelzinga8772

    3 жыл бұрын

    @@KeepItTechie thanks for response I will join :)

  • @kratika8305
    @kratika8305 Жыл бұрын

    Can you please share the commands?

  • @KeepItTechie

    @KeepItTechie

    Жыл бұрын

    I got you! I was planning on redoing the video on Ubuntu Server 22.04

  • @ddrci88
    @ddrci882 жыл бұрын

    shit i enabled ufw and after reboot it before added 22 ssh connection i locked down my vps shitttttttttttttt

  • @KeepItTechie

    @KeepItTechie

    2 жыл бұрын

    Sorry man. I'm not sure where you are hosting it but most cloud platforms have a way to connect to it directly within the counsel. I think its called LISH.

  • @ddrci88

    @ddrci88

    2 жыл бұрын

    @@KeepItTechie vpc also works but I just deleted and reinstalled the os to more practice. Thank for the awesome tutorials.

  • @Ab-on5dj
    @Ab-on5dj3 жыл бұрын

    Hi...First of all, thanks for this tutorial Second, I am assuming that you are using a virtual machine to run the server. I am just wondering how did you do to be able to copy/past from Ubuntu server to the host and vise-versa ?

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    I'm glad you asked. You can copy/paste within the terminal when using SSH. Whenever I install a server on hardware or on a VM I always tend to ssh into the server once it's built to do the configuration.

  • @Ab-on5dj

    @Ab-on5dj

    3 жыл бұрын

    @@KeepItTechie Do you mean that you are accessing the server through ssh from the host machine?

  • @Ab-on5dj

    @Ab-on5dj

    3 жыл бұрын

    @@KeepItTechie Thanks, I just tried it...It works...And, you saved me a lot of time ;)

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    @@Ab-on5dj No problem. I'm glad that worked for you.

  • @Ab-on5dj

    @Ab-on5dj

    3 жыл бұрын

    @@KeepItTechie I am stuck again and i need your help. I've followed the steps in this tutorial, but I am still not able to access the domain name, I get "DNS_PROBE_FINISHED_NXDOMAIN" on my browser. However, if I enter my local ip address , it works fine...What's the issue?

  • @AmberSmith-dd3qs
    @AmberSmith-dd3qs3 жыл бұрын

    awesome but at the last minute you blew it not showing how to display html file in web

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    I'm not sure what you mean? At the end of the video, I do show both HTML files I created on the server in the browser.

  • @AmberSmith-dd3qs

    @AmberSmith-dd3qs

    3 жыл бұрын

    @@KeepItTechie These were my assignment requirements: Part 3.2: Apache virtual hosting Configure your apache server for virtual hosting. You are to create 2 different virtual hosts firstname_lastname.domain1.com and firstname_lastname.domain2.com having document roots /var/www/domain1 and /var/www/domain2 respectively. Add the following demo html pages in both document roots: This is domain DOMAIN_NUMBER #Where DOMAIN_NUMBER is either 1 or 2 The domain belongs to YOUR_NAME #Where YOUR_NAME is your actual name Part 4: Desktop VM configuration On your Desktop VM, edit your /etc/hosts file and add entries for firstname_lastname.domain1.com and firstname_lastname.domain2.com to resolve to the Server 2 IP address. Part 5: Final steps On the desktop VM, open up firefox and point it to “firstname_lastname.domain1.com” Take a screenshot of the resulting webpage and call it domain1.png. point your browser to Faculty of Applied Science and Technology ::SYST28296 Linux Admin ::“firstname_lastname.domain2.com” Take a screenshot of the resulting webpage and call it domain2.png. Point firefox to the login page of webmin on the server, log in and take a screenshot and call it webmin.png ACTUALLY you have done your part well and displayed it on web too, what I meant to say is I followed you so well for part 3.2 of my assignment fully covered and expected more of firefox stuff. Somehow I couldn't figure out part 4 and 5 . Anyway, thanks for your effort! I learnt much more in your 20 mins video than my professor teaching for entire 3 hours . :)

  • @KeepItTechie

    @KeepItTechie

    3 жыл бұрын

    I understand! Thanks! I'm glad it helped. Let me know if you have anymore questions. I'm happy to help. =)

  • @justawfulgamer7738
    @justawfulgamer77384 жыл бұрын

    you were COX blocked port 80

  • @KeepItTechie

    @KeepItTechie

    4 жыл бұрын

    Yeah cox block a lot of ports. They use the excuse that they are protecting their customers. They will open it if you purchase the business package.