Question
Proper way of setting up a subdomain on a https domain?
I have a https domain (https://wpqa.net) and I’d trying to add a subdomain demo.wpqa.net.
I think I’m lost somewhere as my subdomain is now pointing to the main domain, that is subdomain is having the same content as the main.
My /etc/apache2/sites-enabled/default-ssl.conf is as follow
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerAdmin webmaster@WPQA
DocumentRoot /var/www/demo
Servername demo.wpqa.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@WPQA
DocumentRoot /var/www
Servername 104.131.35.241
ServerAlias WPQA www.WPQA
Not too sure if my config is right.
Any input is greatly appreciated.
Thanks!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×