0

I'm quite new to this whole website thing and I'm looking for some guidance on how to configure bitnami apache so I can have two websites on the same server.

I have a domain (which i'll call example.com) using route53 and pointed it to my lightsail LAMP instance. Now what I want to do is have one main site at either www.example.com or example.com and then another site at test.example.com. I would also like to get https running using letsencrypt if possible.

Could I configure it so that the file structure would be something along the lines of

/opt/bitnami/apache/htdocs
    /www
        main website here
    /test
        second website here

Would really appreciate any pointers on how to do this. I presume I need to create virtual hosts in the apache config files but I have no idea how to do that for different subdomains and have https as well.

Dave M
  • 4,494
  • 21
  • 30
  • 30
dangee1705
  • 101
  • 2
  • please let me know if there are any logs of command outputs anyone needs – dangee1705 Nov 19 '20 at 17:50
  • There are many tutorials for "how to host two / multiple websites on apache", like this one https://www.liquidweb.com/kb/configure-apache-virtual-hosts-ubuntu-18-04/ – Tim Nov 29 '20 at 17:17

0 Answers0