Zoker Posted May 8, 2017 Share Posted May 8, 2017 Hi there, Instead of having my public domain file within the default folder (/var/customers/webs/%username%/) I want to have my domain files at /home/user/public I also set up the domain to point to that directory. But when I want to access the page, I get a 403 error. What permission do I need to set, to allow users to access this page? Thank you, Zoker Link to comment Share on other sites More sharing options...
d00p Posted May 8, 2017 Share Posted May 8, 2017 Well, is the customer homedir prefix set to "/home/"? Is the customers homedir /home/[user]/? If not, the domains docroot is out of the homedir and therefore cannot be accessed. If you have all Settings like mentioned, the cronjob will set the correct permissions. Link to comment Share on other sites More sharing options...
Zoker Posted May 8, 2017 Author Share Posted May 8, 2017 No they are not set to /home/[user], because e.g site1.domain.com will be in /home/user1 and site2.domain.com will be in /home/user2. So do I need to set it to /home? Also: Can I change the homdir somehow afterwards? Where can I set it? Link to comment Share on other sites More sharing options...
d00p Posted May 8, 2017 Share Posted May 8, 2017 Well wheres the Problem? Add user1, assign site1.domain.com to him, add user2, assign site2.domain.com to him. So if you want Users to have their documentroot in /Home, yes, you need to Set the customer-directory prefix to /home in the settings. You can change the setting afterwards, but it's not recommended as existing customers will not get updated and you might run into mixups. Link to comment Share on other sites More sharing options...
Zoker Posted May 8, 2017 Author Share Posted May 8, 2017 Ok thank you. Last question: When I add a new customer account, where can I set the docroot? I can't find the field for that Link to comment Share on other sites More sharing options...
d00p Posted May 8, 2017 Share Posted May 8, 2017 I thought this was clear due to previous statements. Customer-directory prefix + Username. E.g. /home/web1, /home/web2, etc. Link to comment Share on other sites More sharing options...
Zoker Posted May 8, 2017 Author Share Posted May 8, 2017 Yes the directory is clear, but not the place, where I put this in: Link to comment Share on other sites More sharing options...
d00p Posted May 8, 2017 Share Posted May 8, 2017 Again: Settings...Not the customer-add form. Link to comment Share on other sites More sharing options...
Question
Zoker
Hi there,
Instead of having my public domain file within the default folder (/var/customers/webs/%username%/) I want to have my domain files at
/home/user/public
I also set up the domain to point to that directory. But when I want to access the page, I get a 403 error.
What permission do I need to set, to allow users to access this page?
Thank you,
Zoker
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.