Keywords: LAMP/MAMP/WAMP - AWS - How to - Other
Having followed the steps on the Bitnami docs page and restarted apache I cannot get my virtual host to point to the correct directory.
Here’s the suggested code, and already I don’t really understand:
<VirtualHost 127.0.0.1:80 _default_:80> ServerAlias * DocumentRoot /opt/bitnami/APPNAME <Directory "/opt/bitnami/APPNAME"> Options -Indexes +FollowSymLinks -MultiViews AllowOverride All Require all granted </Directory> </VirtualHost>
How is apache supposed to recognise MYAPP1.com vs MYAPP1.org if we’re not entering the ServerName parameter? To be fair to Bitnami, these instructions appear to relate only to subdomains, but then where are the instructions for virtual hosts for different domains? I really need to solve this, because currently, hosting these sites is costing me money I don’t have.