Host multiple websites on a single Apache Web Server using VirtualHosts (SSL also)

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

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

  • @TheAdventureLabs
    @TheAdventureLabs 9 หลายเดือนก่อน +1

    Unreal video, clear, concise and easy to follow. Thank you brother

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

    Wow very helpful. Thanks!

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

    Thanks for the educatiinal video!

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

    Thank you very much. This was very helpful.
    However, I would like to know how can I have SSL for multiple different domains on the same server? In your video, it's the SSL for the same domain - just different subdomains.

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

      The same technique should work with different domains as well. I used different subdomain because I only own 1 domain

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

    Thank you :)

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

    Is it possible for 3 websites?

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

    What if I want to render my sitefirst page under sitesecond url and render sitefirst under sitefirst. What I mean is i want keep my sitesecond url but render sitefirst page.

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

      If I understand correctly, you'll have to add a 301 redirect under sitesecond virtualhost from /page to sitefirst/page

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

    Thank you for the video. It is working for me with two websites (default htdocs directory is one, new folder for a vhost is second), but when I add a third website it is pointed to the default htdocs directory as well. I created a new vhost section for each domain. What should i do to fix it?

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

      Thanks. You need to set the DocumentRoot property on the VirtualHost for the third website. Like this
      DocumentRoot "/www/website3" # directory to third website
      ServerName www.website3.com
      # Other directives here

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

      @@vladsavecoding4111 I did that, but somehow there was another conf file directing the third domain to default root folder (I probably did something stupid when creating certificates). I figured it out eventually and fixed. Thank you!

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

      @@guiperalta Nice!