Report this

What is the reason for this report?

My subdomain showing me main website?

Posted on July 21, 2019
C K

By C K

Im trying to create a subdomain and the main domain is a wordpress site!

Whenever i try to configure as shown in digitalocean tutorials and same in all other tutorials to create a subdomain, my subdomain shows me the content of my main domain.

Eg: my main domain is “https://example.com” and i want to create “https://forum.example.com” but it shows me my root site

I edit the vhosts as per the tutorials but still no luck, take a look vhost file:

<VirtualHost *:80> ServerAdmin info@example.com ServerName hi.example.com DocumentRoot /var/www/hi.example.com/public_html

    <Directory /var/www/hi.example.com/public_html/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Please someone help me, im trying this from weeks! Appreciate your help!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.