Little more clarity about app.domain.com

Keywords: LAMP/MAMP/WAMP - Bitnami Cloud Hosting - How to - Other

Description:
Reading the document here.

https://docs.bitnami.com/aws/infrastructure/lamp/configuration/configure-custom-application/#approach-a-bitnami-installations-using-system-packages

For Approach A
I have /opt/bitnami/MYAPP1 and /optbitnami/MYAPP2.
with the file MYAPP1-vhost.conf
<VirtualHost *:80>
ServerName MYAPP1.domain.com
ServerAlias www.MYAPP1.doamin.com
DocumentRoot /opt/bitnami/MYAPP1
<Directory “/opt/bitnami/MYAPP1”>
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride All
Require all granted

and file MYAPP2-vhost.conf
<VirtualHost *:80>
ServerName MYAPP2.domain.com
ServerAlias www.MYAPP2.domain.com
DocumentRoot /opt/bitnami/MYAPP2
<Directory “/opt/bitnami/MYAPP2”>
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride All
Require all granted

How do I make domain.com go to /opt/bitnami/MYAPP1 and MYAPP2.domain.com go to /opt/bitnami/MYAPP2. I’m not sure if I’m missing some important step in the documentation or if there was documentation I haven’t read yet.

Nevermind. I just found what I was doing wrong. I never added ServerName to MYAPP1-vhost.conf. I thought I did but I should of checked my files before posing here sorry.

Hi @Happydemon,

Thanks for the info. I’m glad you fixed your issue! We will close this thread as solved. Please do not hesitate to open a new one with any other questions you may have.