Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Other
bnsupport ID: ffe1bb6e-5dc1-1aa6-6a1e-c358425c7f2d
I am new to AWS Lightsail LAMP stack and am having trouble getting my website to route properly to its folder.
I have all my files for my website on folder /opt/bitnami/apache/htdocs/testsite
However, when I type testsite.com on the browser, it gets the default index.html on the root folder, that is on /opt/bitnami/apache/htdocs/index.html
How can I point my website to /opt/bitnami/apache/htdocs/testsite folder?
On the /opt/bitnami/apache/conf/bitnami/bitnami.conf file, I have following:-
<VirtualHost default:80> DocumentRoot "/opt/bitnami/apache/htdocs" <Directory "/opt/bitnami/apache/htdocs"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> # Error Documents ErrorDocument 503 /503.html </VirtualHost> <VirtualHost *:80> ServerName testsite (did not let me put 2 links on the post) ServerAlias testsite(did not let me put 2 links on the post) ServerAdmin email@example.com DocumentRoot "/opt/bitnami/apache/htdocs/testsite" <Directory "/opt/bitnami/apache/htdocs/testsite"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost>
This file was already included in /opt/bitnami/apache/conf/httpd.conf file
Please let me know what I am missing or please direct me to properly setting up the virtual host. I googled for help but each solution refers to httpd.conf on different folders and I was not able to solve my problem after trying many times.
Thank you so much,