Results 1 to 3 of 3

Thread: Systemlink from html folder to domain

  1. #1
    Join Date
    Feb 2019

    Question Systemlink from html folder to domain

    Currently I am working on a cms system where users can whitelist the csm with using there own domain. The user will setup that the domain is pointing to our server in an external dns server.

    Now I am trying to setup a system link from /var/www/html/ to the home folder of the domain where the cms is running at /home/cmsuser/domains/cmsdomain/public_html/
    But the webapps user dont have access to this folder. I already added the webapps user to the usergroup of the cmsuser but that's not working. I also tried to set the default user to the cmsuser of /var/www/html but that is also not working.

    Someone has an idea how I could fix the permissions so I can make a system link to an existing domain?

    The server is running on:
    CentOS Linux release 7.5.1804
    Apache 2.4.35
    DirectAdmin 1.54.1

  2. #2
    Join Date
    Apr 2005
    GMT +7.00
    Hello Pascal,

    For symlinks to work in Apache/NGINX their owner should match a target file/directory. If owners do not match you will get an error.
    I'd suggest that you try a different approach for your tasks:

    - change document dir of your application
    - change location of your files
    - use mount --bind
    - other
    Regards, Alex G.

    - You can hire me on to work on your server
    - Follow and like @Poralix on Facebook

  3. #3
    Join Date
    Feb 2019
    Thank you for your response Alex,

    I got it working with a mount instead of a systemlink!

Posting Permissions

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