Apache Server | Setup Virtual Host on Ubuntu Server 20.04

Sdílet
Vložit
  • čas přidán 25. 08. 2024

Komentáře • 212

  • @hozay6552
    @hozay6552 Před rokem +5

    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!

  • @lihlemgugudo664
    @lihlemgugudo664 Před 2 lety +13

    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  Před 2 lety +3

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

  • @caseykreicar
    @caseykreicar Před 4 lety +17

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

  • @justawfulgamer7738
    @justawfulgamer7738 Před 4 lety +18

    Such an underrated channel. Keep up the great work.

  • @Madmenafternoondelig
    @Madmenafternoondelig Před 4 lety +3

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

    • @KeepItTechie
      @KeepItTechie  Před 4 lety

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

  • @GameOver-tk2gy
    @GameOver-tk2gy Před 2 lety

    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 !!!!!!

  • @Toxik_Tobi
    @Toxik_Tobi Před rokem

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

  • @festimgashi9533
    @festimgashi9533 Před rokem

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

  • @lucasdiniz4547
    @lucasdiniz4547 Před 2 lety

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

  • @greggriffith8593
    @greggriffith8593 Před rokem

    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.🙏

  • @frankthetechtank
    @frankthetechtank Před 2 lety

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

  • @ashishdabas5241
    @ashishdabas5241 Před 3 lety

    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  Před 3 lety

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

  • @allan-glasier
    @allan-glasier Před 3 lety +3

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

  • @jansaldana5156
    @jansaldana5156 Před 3 lety +1

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

  • @lord-baltimore
    @lord-baltimore Před 4 lety

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

    • @KeepItTechie
      @KeepItTechie  Před 4 lety

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

  • @iameddieeuk5450
    @iameddieeuk5450 Před 2 lety +1

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

  • @danielmajer1648
    @danielmajer1648 Před rokem

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

  • @d_sportello
    @d_sportello Před 11 měsíci

    Thanks mate, you made it clear!

  • @francisfernando4605
    @francisfernando4605 Před 3 lety

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

  • @BigSnowLife
    @BigSnowLife Před 2 lety

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

  • @Mikeclemons1
    @Mikeclemons1 Před 4 lety

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

  • @jordanevince5536
    @jordanevince5536 Před 2 lety

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

  • @willtoulan
    @willtoulan Před 2 lety

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

  • @reymonddomingo4412
    @reymonddomingo4412 Před rokem

    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  Před rokem

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

  • @robertreinhard8953
    @robertreinhard8953 Před 3 lety

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

  • @oussamabenrejeb2751
    @oussamabenrejeb2751 Před 4 lety

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

  • @networkingasahobby3887

    Very clear explanations. Thanks!

  • @chizytony315
    @chizytony315 Před 3 lety

    Best explanation ever, thanks man 👍

    • @KeepItTechie
      @KeepItTechie  Před 3 lety

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

  • @it-expat-china
    @it-expat-china Před 2 lety

    Well explained, many thanks!

  • @MrRetroVinyls
    @MrRetroVinyls Před 2 lety

    this was really helpful! Thank you

  •  Před 3 lety

    Thanks, configured a local webserver for development

  • @mirceamarghitas1046
    @mirceamarghitas1046 Před 3 lety

    thanx man straight to the point...

  • @elias-9395
    @elias-9395 Před 4 lety

    Excellent work. Thanks a lot my friend.

  • @msplifestyles
    @msplifestyles Před 3 měsíci +1

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

  • @nopetoyou8493
    @nopetoyou8493 Před rokem

    thanks for your helpful tutorial (:

  • @rakeshpk4991
    @rakeshpk4991 Před 3 lety

    Concise explanation. Thanks.

  • @bawbee27
    @bawbee27 Před 3 lety

    This is incredibly helpful

  • @Arkayaplays
    @Arkayaplays Před 4 lety +2

    NICE

  • @awframpton
    @awframpton Před 4 lety

    Nice comprehensive guide!

  • @ryanjonbrown
    @ryanjonbrown Před 2 lety

    Nice video. Very helpful

  • @danielyount9812
    @danielyount9812 Před 4 lety +1

    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  Před 4 lety +1

      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 Před 4 lety

      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 Před 4 lety

      @@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 Před 11 měsíci

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

  • @keyzaccord1774
    @keyzaccord1774 Před rokem

    I see you brotha!!!

  • @isaacmaag1294
    @isaacmaag1294 Před 2 lety

    Amazing video!

  • @leonardoreacaoinformatical2268

    Muito Bom . Mairipora - São Paulo Brasil

  • @resysysty
    @resysysty Před 3 lety

    Thanks for the video brotha!

  • @EKBShorts
    @EKBShorts Před 3 lety

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

  • @r_a_m_ji8358
    @r_a_m_ji8358 Před 2 lety

    enlightening

  • @strycinek
    @strycinek Před 3 lety

    Thanks man, it helped a lot

  • @BMAPS
    @BMAPS Před 4 lety

    You earned a subscriber, sir!!!

    • @KeepItTechie
      @KeepItTechie  Před 4 lety +1

      Thanks!!

    • @BMAPS
      @BMAPS Před 4 lety

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

  • @CubaPavel
    @CubaPavel Před rokem

    Thx a lot man!

  • @hadeseye2297
    @hadeseye2297 Před 4 měsíci

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

  • @reinayang4708
    @reinayang4708 Před 3 lety +3

    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? 😭

  • @quindarius
    @quindarius Před 3 lety

    great vid man!

  • @jockfaire
    @jockfaire Před 11 měsíci

    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?

  • @muhdbunahmad
    @muhdbunahmad Před 3 lety

    Great video. Keep it up.

  • @ayoubahsheriff9561
    @ayoubahsheriff9561 Před 3 lety

    Thanks bro!

  • @melkamualmawu
    @melkamualmawu Před 3 lety

    well explained

  • @gerardokolie1829
    @gerardokolie1829 Před rokem

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

  • @vernonconnors3470
    @vernonconnors3470 Před 3 lety +2

    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 Před rokem

      Same issue, here. Did you find any solution?

  • @traeldor
    @traeldor Před 4 lety +2

    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  Před 4 lety

      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 Před 4 lety

      @@KeepItTechie installing discord now

  • @ToraoTakabe
    @ToraoTakabe Před 2 lety

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

  • @CribsNL
    @CribsNL Před 4 lety

    thnx mate, very helpfull...

    • @KeepItTechie
      @KeepItTechie  Před 4 lety

      Glad it helped

    • @CribsNL
      @CribsNL Před 4 lety

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

    • @KeepItTechie
      @KeepItTechie  Před 4 lety

      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.

  • @alirezazolfaghar2724
    @alirezazolfaghar2724 Před 2 lety

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

  • @ithelpers4625
    @ithelpers4625 Před 4 lety

    Brill
    Thanks Man

    • @KeepItTechie
      @KeepItTechie  Před 4 lety +1

      No problem 👍 I appreciate you watching!

  • @chizytony315
    @chizytony315 Před 3 lety +1

    I just learned Linux from Ice Cube... LMAO

    • @KeepItTechie
      @KeepItTechie  Před 3 lety +1

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

  • @user-xt3zy5fm4o
    @user-xt3zy5fm4o Před 9 měsíci

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

  • @HFSYung
    @HFSYung Před 3 lety

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

    • @KeepItTechie
      @KeepItTechie  Před 3 lety

      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.

  • @dackeos3098
    @dackeos3098 Před rokem

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

  • @milan3693
    @milan3693 Před 2 lety

    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,

  • @lakatosgabor5410
    @lakatosgabor5410 Před 3 lety

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

  • @brixtongun
    @brixtongun Před 3 lety

    good info bruh

  • @emersonsantos4372
    @emersonsantos4372 Před 3 lety

    Mano, ajudou para caralho, vlew!

  • @rljpdx
    @rljpdx Před 3 lety

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

  • @MrCmp2390
    @MrCmp2390 Před 2 lety

    ✊🏾

  • @TheGarageboyz
    @TheGarageboyz Před 2 lety

    Hi. What mardown language were you referring to?

  • @SilVer-hu2ps
    @SilVer-hu2ps Před 2 lety

    Subbed

  • @aproudkafir7459
    @aproudkafir7459 Před 2 lety

    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  Před 2 lety

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

    • @aproudkafir7459
      @aproudkafir7459 Před 2 lety

      @@KeepItTechie Thanks for the info.

  • @diegomanzanares7153
    @diegomanzanares7153 Před 2 lety

    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 Před 2 lety

      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.

  • @ahsanhabibkhan6217
    @ahsanhabibkhan6217 Před 3 lety

    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  Před 3 lety +1

      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.
      czcams.com/video/VvqJ5hZnpJ4/video.html

  • @ways2560
    @ways2560 Před 2 lety

    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 Před 11 měsíci

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

  • @easytechnology2641
    @easytechnology2641 Před 2 lety

    big bro

  • @TrouvatkiDePercusion
    @TrouvatkiDePercusion Před 2 lety +1

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

    • @KeepItTechie
      @KeepItTechie  Před 2 lety

      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.

  • @simpleman1496
    @simpleman1496 Před 3 lety

    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

  • @Dunno333
    @Dunno333 Před 3 lety

    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  Před 3 lety

      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  Před 3 lety

      Plex: czcams.com/video/O8_vwA03iW4/video.html
      Nextcloud: czcams.com/video/qh1w9tKtGv0/video.html
      Let me know if you have any question.

  • @fortebooks4595
    @fortebooks4595 Před 4 lety

    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  Před 4 lety

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

    • @fortebooks4595
      @fortebooks4595 Před 4 lety

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

  • @CribsNL
    @CribsNL Před 4 lety

    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  Před 4 lety

      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 Před 4 lety

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

  • @mylondoncorner
    @mylondoncorner Před 2 lety

    You deserve a Lambo

  • @theafricanboss
    @theafricanboss Před 3 lety

    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  Před 3 lety +1

      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 Před 3 lety

      @@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
    @imanebenrazzouk9738 Před 2 lety

    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  Před 2 lety

      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 Před 2 lety

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

  • @MadBroStudio
    @MadBroStudio Před 3 lety

    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  Před 3 lety

      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 Před 3 lety

      @@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 Před 2 lety

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

  • @robinelzinga8772
    @robinelzinga8772 Před 3 lety

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

    • @KeepItTechie
      @KeepItTechie  Před 3 lety

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

    • @robinelzinga8772
      @robinelzinga8772 Před 3 lety

      @@KeepItTechie thanks for response I will join :)

  • @goadane6897
    @goadane6897 Před 4 lety

    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  Před 4 lety

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

  • @ioannisandreadakis9067

    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  Před 3 lety

      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 Před 3 lety

      @@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  Před 3 lety

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

  • @kratika8305
    @kratika8305 Před rokem

    Can you please share the commands?

    • @KeepItTechie
      @KeepItTechie  Před rokem

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

  • @Ab-on5dj
    @Ab-on5dj Před 3 lety

    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  Před 3 lety +1

      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 Před 3 lety

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

    • @Ab-on5dj
      @Ab-on5dj Před 3 lety

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

    • @KeepItTechie
      @KeepItTechie  Před 3 lety +1

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

    • @Ab-on5dj
      @Ab-on5dj Před 3 lety

      @@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?

  • @nikhilev3840
    @nikhilev3840 Před 3 lety

    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 Před 3 lety

      Load same site whatever the sub domain is

    • @KeepItTechie
      @KeepItTechie  Před 3 lety +1

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

    • @nikhilev3840
      @nikhilev3840 Před 3 lety

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

  • @AmberSmith-dd3qs
    @AmberSmith-dd3qs Před 3 lety

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

    • @KeepItTechie
      @KeepItTechie  Před 3 lety +1

      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 Před 3 lety

      @@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  Před 3 lety +1

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

  • @ivangarmaz4848
    @ivangarmaz4848 Před 3 lety

    Do I need static IP for this to work?

    • @KeepItTechie
      @KeepItTechie  Před 3 lety

      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 Před 3 lety

      @@KeepItTechie Thank you so much💪💪

  • @ddrci88
    @ddrci88 Před 2 lety

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

    • @KeepItTechie
      @KeepItTechie  Před 2 lety

      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 Před 2 lety

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

  • @justawfulgamer7738
    @justawfulgamer7738 Před 4 lety

    you were COX blocked port 80

    • @KeepItTechie
      @KeepItTechie  Před 4 lety

      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.