11-14-2020, 09:19 PM
Okay, so I have tried the above method with the same results happening. Below is my vHost and DNS entries. What I am not understanding is the .htaccess portion, I keep seeing conflicting entries where people are setting it up in the main domain folder and the subdomain folder.
Main Domain - Type A - @ - Points to SERVERIP
Sub Domain - Type CNAME - Points to @
Any help would be appreciated, I have been looking through a few items online and I keep getting redirected back to the main tbelldesign.co site from dev.tbelldesign.co
Code: (Select All)
NameVirtualHost *:80
<VirtualHost *:80>
ServerName tbelldesign.co
ServerAlias www.tbelldesign.co
DocumentRoot /var/www/tbelldesign.co/public_html/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/tbelldesign.co/public_html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName dev.tbelldesign.co
DocumentRoot /var/www/tbelldesign.co/public_html/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/dev.tbelldesign.co/public_html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Main Domain - Type A - @ - Points to SERVERIP
Sub Domain - Type CNAME - Points to @
Any help would be appreciated, I have been looking through a few items online and I keep getting redirected back to the main tbelldesign.co site from dev.tbelldesign.co