Results 1 to 7 of 7

Thread: Multisite with subdomains ?

  1. #1
    User
    Join Date
    04-01-10.
    Posts
    289

    Default Multisite with subdomains ?

    Hello,
    I got a first website. I would like to develop a new version on the same installation. I know Contao can host many website on the same installation, each with its own domain. Is it possible to use subdomain (ie : dev.mydomain.ext) in a root page ?

    Thanks.

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Yes, of course. Just try it.
    Contao Community Moderator
    → Support options

  3. #3
    User
    Join Date
    04-01-10.
    Posts
    289

    Default

    Quote Originally Posted by xchs View Post
    Yes, of course. Just try it.
    Thanks xchs (and happy new year).

    I was asking because I tried and it didn't work. My installation is on a shared host. So every subdomain I can create points to its own vhost/directory. I can change a subdomain ton another vhost directory. But seem's I can't make many subdomains point to the same vhost directory. What could be the solution ?

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Happy New Year, too.

    Of course, all subdomains must have the web/ subfolder of your Contao installation as DocumentRoot. Otherwise it will not work.
    Contao Community Moderator
    → Support options

  5. #5
    User
    Join Date
    04-01-10.
    Posts
    289

    Default

    So, if I can't make each subdomain points to the right vhost web/ directory, I'll need to create symlinks ?

  6. #6
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    That might work.
    Contao Community Moderator
    → Support options

  7. #7
    User
    Join Date
    04-01-10.
    Posts
    289

    Default

    In the facts, for now, it works. If I type "dev.mydomain.ext" I'm redirected to mydomain.ext (the actuel website). But I if I type dev.mydomain.ext/accueil.html, I got the right page.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •