How to serve a subdomain and the domain on a single django-cms?

224 Views Asked by At

Is is possible to serve a subdomain and the main domain on the same django-cms instance ?

For example: how to serve the following submains and the main domain on the same Django-CMS instance ?

   abc.mydomain.com
   xyz.mydomain.com
   www.mydomain.com

If so, what are needed to be done in Apache httpd.conf and Django-CMS ?

Thank you in advance.

1

There are 1 best solutions below

0
Binarydreamer On

What needs to be done with Apache httpd.conf?

<virtualhost *:80>
  ServerName one.example.com
....
</virtualhost>
<virtualhost *:80>
  ServerName two.example.com
....
</virtualhost>

ServerName within the Apache config is what's used to identify and run name-based hosts. You can read more about that here

In regards to the Django-CMS, you'd need to read their documentation as they have a specific setup for hosting multiple sites.