Setup Apache Virtual Hosts (Website) on Ubuntu 16.04!

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

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

  • @SomeDumbRandomUser
    @SomeDumbRandomUser 8 ปีที่แล้ว +62

    When youre already in the directory, you can just enter the Filename from your dir ...

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

    Thank You!. I have tried it from morning this day. After watching your video only, it's worked out.

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

    Literally, this is the most helping tutorial for this topic. Thank you.

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

    Wow this was so apt and good. Wasted a lot of my time browsing until I found your video.

  • @winex01
    @winex01 7 ปีที่แล้ว +28

    correct me if i'm wrong please.
    why you still typing /etc/blah/blah/
    when your already in that folder cant you not type
    sudo nano directly because youre already in that directory

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

      I think he just used to it or it can be for other people watching so to make sure they reach back to that folder if they did "cd" or anything by mistake... hell idk i really don't haha.. Or because the use of "sudo" MMmm?

  • @PainbowSheep
    @PainbowSheep 7 ปีที่แล้ว

    I think you know by now but you should never sudo nano. Use the command sudoedit. A great guide, that just caught my eye.

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

    Great tutorial, well organized and explained, great job.

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

    I really love your video! This video helped me a lot! Thanks

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

      thank you for watching be safe my friend.

  • @EveDaya
    @EveDaya 8 ปีที่แล้ว

    This was just great and an easy understandable way to create virtual hosts.
    Thanks a lot :)

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

    This has been one the most most helpful videos I've used over the last 2 years. Thanks again!

  • @cjramki3956
    @cjramki3956 6 ปีที่แล้ว

    Thanks man... Awesome step by step demo... Working like charm... :)

  • @inurear
    @inurear 6 ปีที่แล้ว

    Well executed demonstration! worked like a charm for me

  • @New2Golf
    @New2Golf 8 ปีที่แล้ว +5

    You should explain what the commands do and why you are doing them.

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

      Each command is explained within the reference link in the description. I provided a short description on each command - hope that helps. Thanks for watching!

    • @AngelCintiaRockgirl
      @AngelCintiaRockgirl 6 ปีที่แล้ว

      New2Golf read the book

  • @nemanja7289
    @nemanja7289 7 ปีที่แล้ว +44

    man, use TAB to finish line

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

      Next time, thanks for the feedback.

    • @emuexports
      @emuexports 7 ปีที่แล้ว

      He was.... 5:19

    • @NoajmIsMyName
      @NoajmIsMyName 7 ปีที่แล้ว

      Don't worry about him, I bet he did even use the caps lock key for "TAB" hahaha

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

      @@NoajmIsMyName 😛

  • @pastrana2000
    @pastrana2000 7 ปีที่แล้ว

    Thank you so much! You went a little fast for a beginner, but i think I'm getting it! I set up my website with a public domain.

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

    suggestion: use TA B to fill out your words/phrases as you go, I noticed you used it at times, and some times you could of but didn't (kinda annoying but no harm :D), IT WORKS AWSOME THO, THANKS FOR THE HELP OTHERWISE

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

      That's a great idea! Thank you.

  • @muhammadahmed4765
    @muhammadahmed4765 6 ปีที่แล้ว

    thanks bro it worked you are best
    GOT SOMETHING NEW TO LEARN AFTER LONG BROWSING

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

    Great video with clear explanations.

  • @dragoflames
    @dragoflames 8 ปีที่แล้ว

    Awesome Video! Thanks for the help. Worked.

  • @jungl3ist
    @jungl3ist 8 ปีที่แล้ว

    Nice video as always. Would you consider making a video or a series of videos about apache cloudstack ? For managing virtual hard drives in a hyper-visor environment etc.... i would be interested in it for sure.

  • @samithchanaka8250
    @samithchanaka8250 7 ปีที่แล้ว

    Thanks BTNHD you are a lifesaver

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

    Super thank you for you tutorial dude!

  • @garyjohnston2777
    @garyjohnston2777 6 ปีที่แล้ว

    Dude thankyou so much this is a really helpful video

  • @IsmailHossain-do4zl
    @IsmailHossain-do4zl 6 ปีที่แล้ว

    This video was very much helpful for me.

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

    Thanks bro this is very helpful for my life:)

  • @RicardoWagner
    @RicardoWagner 7 ปีที่แล้ว

    Great vid. But what about a second, third site and your hosts file... or you are using this host entry just for this purpose .?

  • @allahuakbar1384
    @allahuakbar1384 7 ปีที่แล้ว

    Great Teacher 100% Honest Professor kip it up Dear

  • @RogerHolden
    @RogerHolden 5 ปีที่แล้ว

    You don't need to type the full file path to copy files in the folder you're currently in. You could also quickly go to /etc rather than use repeated cd.. commands.

  • @ayoubmouakkir
    @ayoubmouakkir 5 ปีที่แล้ว

    You've helped me a lot , thank you!

  • @MohamedhabibBellaaj
    @MohamedhabibBellaaj 7 ปีที่แล้ว

    An excellent work :)
    Thank you

  • @ajovalles3932
    @ajovalles3932 7 ปีที่แล้ว

    Great video. I would like to know why when I pointed my domain to my ip public address then the ip number appear in the browser url text? How can overcome this issue? I'd like to see the domain instead ip without masking

  • @ehro
    @ehro 5 ปีที่แล้ว

    Great Video! Thank you for the Tut it helped a bunch. Can you do a vid tut on how to set up the custom domain for the website on apache2?
    Thank you!!

  • @JamieMaguire_
    @JamieMaguire_ 7 ปีที่แล้ว

    awesome video dude, thanks!

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

    really helpful. thank you so much!

  • @angelaugustocastrobarbaran7883
    @angelaugustocastrobarbaran7883 7 ปีที่แล้ว

    THANK YOU Lot !!!! its perfect example 10 points!

  • @emilielemoine
    @emilielemoine 7 ปีที่แล้ว

    Hi and thank you for that video. I moved my site to a vitual cloud server and configured my website config file as you mentionned in site the sites-available folder. I reach my website with the homepage URL. However , when I am on the homepage I don't succeed in navigating through other pages. The pages exist but I have a 404 not found error. could you please help on that ?

  • @RicardoWagner
    @RicardoWagner 7 ปีที่แล้ว

    What about a second virtual server. Can you do a vid about config it

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

    Can I use different ports for each sites instead of 80?
    If possible, what are the pros and cons of that?

    • @leonsceco
      @leonsceco 6 ปีที่แล้ว

      Using port forwarding and natting I'm sure that can be done.

  • @saifghassan
    @saifghassan 8 ปีที่แล้ว

    Nice and clear tutorial. I'm runnung 14.04 and I followed your steps but when I browse the ip on the browser it still redirect me to the default apache page. Any suggestions?

  • @Penguinz4LOLZ
    @Penguinz4LOLZ 5 ปีที่แล้ว

    Just as a heads up the 'cd ap2' might not work with newer versions of Ubuntu. You need to write 'cd apache2' instead.

  • @juanrebella2589
    @juanrebella2589 6 ปีที่แล้ว

    Great video, thanks!

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

    i miss nano hosts thanks for mention that

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

    This works as long as you want to deploy and use on the same network. What if I want to deploy on the web?

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

    i have try it but if i use a example.com i reach my page only on localhost. from network i can load my page with 192.168.2.215 but example.com doest work help pls

  • @learntoworld
    @learntoworld 7 ปีที่แล้ว

    It helped for me ..Thanks :)

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

    Hey BTNHD, You could have just typed "cd" to get to the root @4:59!

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

      This is true, but I like to do things the hard way :)

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

      I see :)

  • @richardlanglois5183
    @richardlanglois5183 6 ปีที่แล้ว

    Great presentation!

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

    actual video starts at 3:40

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

      underrated comment thank u

  • @dasuntharinda9038
    @dasuntharinda9038 6 ปีที่แล้ว

    Awesome video..Thanks dr

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

    You saved me, thanks:)

  • @Elderofwaukeen
    @Elderofwaukeen 6 ปีที่แล้ว

    I used virtualhost to redirect server requests from the main domain to a specific port where my web app is running, but there I get a proxy error (502) on the browser and the page loads but not the css stylesheet.

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

    When are you gonna use TAB, man!

    • @bjtechnewshd
      @bjtechnewshd  5 ปีที่แล้ว

      Hmmm never. But if you know how to use it by all means TAB away my good man.

  • @ofiofy9942
    @ofiofy9942 6 ปีที่แล้ว

    Could you do a video on How To install Ubuntu server 18.04 LTS + Static ip + LAMP SERVER + Webmin Admin Panel, and allocate hosting space to clients logging in to manage their websites via control panel?

  • @stmasanti
    @stmasanti 6 ปีที่แล้ว

    do you know how to point my domain to my server?

  • @humphreybrian449
    @humphreybrian449 7 ปีที่แล้ว

    Wow thanks alot you have saved me alot....

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

    how do i change the name of my server

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

    Thanks for the video it helped a lot, although your navigation through folders is slow af man !

  • @cjchico
    @cjchico 8 ปีที่แล้ว

    Can you do a video on how to install openvpn and create certs on ubuntu?

    • @bjtechnewshd
      @bjtechnewshd  8 ปีที่แล้ว

      I'll add it to the todo list :) - nice request!

    • @cjchico
      @cjchico 8 ปีที่แล้ว

      ***** Ok thanks

  • @ajitjoseph8476
    @ajitjoseph8476 7 ปีที่แล้ว

    Very helpful. Thanks

  • @nikunjbegda1687
    @nikunjbegda1687 5 ปีที่แล้ว

    please make a video on how to move php files on server

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

    very nice, it's really useful but soon use TAB auto-completion, and you don't have to use the absolute path every time.

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

    how can i change file index.html into eg.html

  • @urgencepc4563
    @urgencepc4563 7 ปีที่แล้ว

    Could I host an ubuntu server on a virtual machine and have it run 24/7?

  • @industrial_aviiaion
    @industrial_aviiaion 6 ปีที่แล้ว

    I get this error that there is a syntax error on line 80. for that reason apache will not start. I have no clue how to fix it, however, I am using Raspbian, but both Raspbian and ubuntu are debian based distributions, so this tutorial should work. Everything else, however, worked just fine any help would be appreciated thanks!

  • @rickdrent8846
    @rickdrent8846 7 ปีที่แล้ว

    THNX MAN THNX A LOT you where a great help

    • @bjtechnewshd
      @bjtechnewshd  7 ปีที่แล้ว

      +Rick Drent your welcome

  • @TamiAdokiTv
    @TamiAdokiTv 6 ปีที่แล้ว

    Type the first few characters of a filename or directory then use Tab key for auto complete

  • @AngelCintiaRockgirl
    @AngelCintiaRockgirl 6 ปีที่แล้ว

    Thank you for this awesome, streamlined tutorial that worked perfectly....I was so happy to see it work.

  • @denist.8993
    @denist.8993 7 ปีที่แล้ว

    I love you) Thanks man)

  • @ParnianAndIlian
    @ParnianAndIlian 6 ปีที่แล้ว

    yo do not need to type the full path of a file when you are already in the folder. you also don't need to exit all folders with cd .. and then enter another folder with cd. just type cd /etc/apache2 . you could also use tab to finish commands. these help you save a lot of time and headache.

  • @Dan-eg3op
    @Dan-eg3op 6 ปีที่แล้ว

    Guys, I've tried many times and when I write the ip associated to the webserver it doesnt recognize please help!

  • @trenieves8796
    @trenieves8796 7 ปีที่แล้ว

    when i did sudo apache2 restart what popped up after that didnt show up on my screen. what did i do wrong?

  • @Careyourbusiness
    @Careyourbusiness 6 ปีที่แล้ว

    thank u my teach i like ur videos

  • @michaelarboleda4878
    @michaelarboleda4878 6 ปีที่แล้ว

    Thank you so much, I am new to LAMP and this helped me do exactly what I wanted to do

  • @manojsaini-cu6xc
    @manojsaini-cu6xc 7 ปีที่แล้ว

    my website not working other network please help me

  • @shpazhist
    @shpazhist 5 ปีที่แล้ว

    Man, I've been trying to do sudo service apache2 restart for days now and all i keep getting is message [Job for apache2.service failed because the control process exited with error code.]
    Any ideas how to resolve it?

    • @briankiboma8419
      @briankiboma8419 5 ปีที่แล้ว

      check the ports. port 8080 is already used. edit your ports may be to 8081

  • @JoyBanerjeeTechyWorld
    @JoyBanerjeeTechyWorld 8 ปีที่แล้ว

    video is good but there are other ways you can set things easy way - like hosting websites, i am also using my own VPS on ubuntu and it works fine ...

    • @bjtechnewshd
      @bjtechnewshd  8 ปีที่แล้ว

      +Joy Banerjee sweet I was planning to cover that setup on a future how to video

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

      +BTNHD yes that's great I followed you for hardware stuff servers they are great

    • @bjtechnewshd
      @bjtechnewshd  8 ปีที่แล้ว

      +Joy Banerjee thanks!

  • @ramusesandasari8451
    @ramusesandasari8451 7 ปีที่แล้ว

    sudo a2ensite btnhd.com.config
    when i given this cmd am getting following error ERROR: Site btnhd.com.config does not exist!
    and when give ls cmd that config file is showing

    • @astapunk
      @astapunk 7 ปีที่แล้ว

      mv btnhd.com.conf btnhd.com.config I think

  • @kanjirogaming
    @kanjirogaming 6 ปีที่แล้ว

    Thank you so much !

  • @zicomprojects3373
    @zicomprojects3373 7 ปีที่แล้ว

    why we not use tab to complete the command except waste time to correct spelling mistakes

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

    Thank its work dude

  • @epicferret9974
    @epicferret9974 7 ปีที่แล้ว

    How do you make it so that you type in the name instead of the IP address?

    • @bjtechnewshd
      @bjtechnewshd  7 ปีที่แล้ว

      configure your firewall/router with the web server IP address to access the outside your network. purchase a domain and create a A record to point to your domain name and IP address.

  • @Yeaybelajar
    @Yeaybelajar 7 ปีที่แล้ว

    Thank you so much dude

    • @bjtechnewshd
      @bjtechnewshd  7 ปีที่แล้ว

      no problem - happy it helped you out or got you started :)

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

    I have performed each step perfectly but at last when I enter ip into browser it says site cannot be reached please help thanks in advance

  • @nikkonitro5742
    @nikkonitro5742 6 ปีที่แล้ว

    When i tried doing an ifconfig on my virtualbox it showed a different ip address, not similar to what showed up when I did an ipconfig on cmd

    • @mockcoder5285
      @mockcoder5285 6 ปีที่แล้ว

      Nikko Nitro are you running it on a virtual machine?

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

    nice one bro

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

    the part where you copied the 000-default.conf file, no need to type in the full directory, this would have worked fine
    cp ./000-default.conf ./

    • @well7573
      @well7573 6 ปีที่แล้ว

      dude..thank you so much

  • @simonemastroianni1985
    @simonemastroianni1985 7 ปีที่แล้ว

    Wait... And if you search btnhd.com the result are the same?

    • @bjtechnewshd
      @bjtechnewshd  7 ปีที่แล้ว

      that domain isn't attached to apache web server.

  • @nestorius333
    @nestorius333 7 ปีที่แล้ว

    Nice. Thanks

  • @davidemerson4031
    @davidemerson4031 7 ปีที่แล้ว

    Thank you!

  • @mamadoundiade2764
    @mamadoundiade2764 7 ปีที่แล้ว

    wonderfull tutorial ! I really appreciated .Thank

  • @kahlschlag17
    @kahlschlag17 5 ปีที่แล้ว

    pushd and Tab key...easier for you.

  • @wanttolearn3681
    @wanttolearn3681 5 ปีที่แล้ว

    thank You sir

  • @NguyenPhuong-ye4ft
    @NguyenPhuong-ye4ft 7 ปีที่แล้ว

    Thank you

  • @mygirlinyesterday
    @mygirlinyesterday 5 ปีที่แล้ว

    thank you for helping me grow up

  • @osmerescarraga6943
    @osmerescarraga6943 7 ปีที่แล้ว

    awesome!!!!

  • @SHADAN.__.KHAN077
    @SHADAN.__.KHAN077 5 ปีที่แล้ว

    thank

  • @user-fs2zt4tk6q
    @user-fs2zt4tk6q 4 ปีที่แล้ว

    thanks fam

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

    Didnt work cant find my domain on the Internet.

    • @elsholz2365
      @elsholz2365 6 ปีที่แล้ว

      127.0.0.1:80

    • @inurear
      @inurear 6 ปีที่แล้ว

      You need to know the IP address of the machine you are setting apache on. If you are using a local machine, make sure you have a static ip address and proper port forwarding in place... Also, double check any firewalls in the way

  • @LemBidi
    @LemBidi 7 ปีที่แล้ว

    WTF IS 755????? Explain please.

    • @andrewdirrell7497
      @andrewdirrell7497 7 ปีที่แล้ว

      it's rights of permission in linux. 7 = 4+2+1. 4 means read file/dir prermission. 2 means write file/dir permission. and 1 means execute of file permission. so 7 means all rights. And 5 = 4 + 1 = read and execute permission = read-only rights. And btw if you want only write/read then it will be 4 + 2 = 6. And so on. But there three number? 7 and 5 and 5? first number means permissions for the user who created this file/dir. second - for the group to which this user belongs. And third number - for anyone. SO. 755 means - all rights for the owner of file/dir; and read-only for the users of his group; and read-only for everyone

  • @نسيمالليل-ط7ر
    @نسيمالليل-ط7ر 6 ปีที่แล้ว

    this is can be done easily in windows .. but i still hate windows