Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Other
When configuring vhost records in the system packages approach, subsequent websites are not resolving to their correct directory.
In example, my configuration is as follows:
default bitnami.conf has not been modified
a wordpress-vhost.conf file has been created inside the bitnami/vhosts folder
<VirtualHost *:80> ServerName website1.com DocumentRoot "/opt/bitnami/apache2/htdocs/website1" </VirtualHost> <Directory /opt/bitnami/apache2/htdocs/website1> Options -Indexes +FollowSymLinks -MultiViews AllowOverride All Require all granted </Directory> <VirtualHost *:80> ServerName website2.com DocumentRoot "/opt/bitnami/apache2/htdocs/website2" </VirtualHost> <Directory /opt/bitnami/apache2/htdocs/website2> Options -Indexes +FollowSymLinks -MultiViews AllowOverride All Require all granted </Directory>
In the above example, website 2 displays correctly on it’s url website1.com
website2.com resolves to the parent directory:
Index of /
This wasn’t happening within the previous apache config setup. htdocs supported multiple websites without the need for separate folders.
Any help appreciated. Thank you!