We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19604 ☆ A M B ☆
    • 179 Posts
    Hi,

    I want so use contexts for managing different subdomains. How am I to structure the folders/files on the webserver?

    My approach is the following:

    /domain.com
       /www
          /assets
             /components
          /connectors
          /core
          /manager
          .htaccess
          config.core.php
          index.php
        /sub1
           /assets
              /template
              /content
          .htaccess
          config.core.php
          index.php
        /sub2
           /assets
              /template
              /content
          .htaccess
          config.core.php
          index.php
        /sub3
        ...
    


    The main page and MODX-Manager are in the folder "www" and the subdomain on the same level in "sub1", "sub2", "sub3" etc.

    I do not want the URLs www.domain.org/sub1 and sub1.domain.org to call the same website, so the subdomain file shall not reside within the MODX folder.

    Is there a better way?



    Another thing (using the structure explained above): I am having problems displaying subdomain content from the "subX/assets/content" folder in TinyMCE and the subdomain at the same time. Seeing an image on the website brings me a "broken image" in TinyMCE.

    The settings are:
    Context web
    filemanager_path = /customers/69641453/domain.com/www/assets/content
    filemanager_url = http://www.domain.com/assets/content
    
    Context sub1
    filemanager_path = /customers/69641453/domain.com/sub1/assets/content
    filemanager_url = http://sub1.domain.com/assets/content
    
    Context sub2
    filemanager_path = /customers/69641453/domain.com/sub2/assets/content
    filemanager_url = http://sub2.domain.com/assets/content
    
    ...
    


    Is there an error in my setting? Am I missing something?


    Thanks a LOT!
    Oliver
      MINDEFFECTS – DESIGN for PRINT, WEB and MEDIA
      http://twitter.com/mindeffects · http://www.facebook.com/mindeffects · http://www.youtube.com/mindeffects/ · skype://mindeffects_oliver
      • 34193
      • 330 Posts
      if the sub domains are below the www then they will not be accessable from the web surly. So PHP could include them but a web browser would not be able to view them or am I missing what you are trying to do.