• Resolved jiarui0415

    (@jiarui0415)


    I have a LAMP server running in my basement, also i have a domain from namecheap. I am trying to install Multisite with subdomain, but cannot get it work, my subdomain kdb.example.com kept going to my primary site which is example.com. Can someone tell me what i did wrong? thanks

    1) i have a wildcard created on namecheap, it is an A record direct *.example.com to my server public IP address

    2) I have created a new file calls catchall.conf under /etc/apache2/sites-available, but i still have 000-default there. and here is what i put into the file

    <VirtualHost *>
    ServerName example.com
    ServerAlias *.example.com
    VirtualDocumentRoot /var/www/html
    UseCanonicalName off
      <Directory /var/www/html>
        AllowOverride All
        Options -MultiViews
        Allow from all
      </Directory>
    </VirtualHost>
Viewing 1 replies (of 1 total)
  • Thread Starter jiarui0415

    (@jiarui0415)

    i made a change this morning on namecheap end, simply remove .example.com and just keep * there in the A record that i created, after 30 mins i worked perfectly.

Viewing 1 replies (of 1 total)
  • The topic ‘LAMP Server cannot enable subdomain’ is closed to new replies.