Subdomain not pointing to correct folder

Keywords: LAMP/MAMP/WAMP - Bitnami Cloud Hosting - Technical issue - Domain Name (DNS)

bndiagnostic ID: 2a3776bd-c153-5c29-63bb-59d5ae3387e6

bndiagnostic output:

? Apache: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/

bndiagnostic failure reason: The suggested guides are not related with my issue

Description:
I’ve added the following record into my httpd.conf file (and restarted apache) but the sub domain still seems to be pointing to the root folder. What am I missing?

#DIRECTORY SUBDOMAIN
<VirtualHost *:80>
DocumentRoot “/opt/bitnami/apache2/htdocs/directory/”
ServerAdmin adam.addlestone@domain.ca
ServerName directory.domain.ca
ServerAlias www.directory.bidcentral.ca
ErrorLog “logs/directory-error_log”
CustomLog “logs/directory-access_log” common

Hi @adam.addlestone ,

Can you configure your custom virtual host in the “/opt/bitnami/apache/conf/vhosts/” folder?

https://docs.bitnami.com/aws/infrastructure/lamp/configuration/configure-custom-application/

I understand Apache is using the default virtual host because it’s the first one it finds that matches. Remember you also need to generate another vhost for the https requests.

Yep that was it. Duh. Thank you!!!

So, very odd. This configuration is working fine with all browsers except for ms edge.

directory.bidcentral.ca is working fine on all browsers except Edge. It is trying to load the content from the bidcentral.ca config instead. I am stumped!! Any ideas?

No idea at all! That’s really weird. I do not know if the info is cached in the browser. Can you try removing the browser’s data or using an incognito window?