Cloudlinux and custom virtualhost
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. rahnev
  2. Tuesday, 14 March 2017
  3.  Subscribe via email
Hello all,

We have server with Centos 6.8 + cPanel v62 + Cloudlinux + Cagefs.
We have added custom vhost to the system in /etc/apache2/conf.d/includes/post_virtualhost_global.conf with the following content:


<VirtualHost IP_ADDRESS:80>
ServerName domain.example.com

DocumentRoot /var/www/test

<IfModule suphp_module>
suPHP_UserGroup user1 user1
</IfModule>

<IfModule suexec_module>
<IfModule !mod_ruid2.c>
SuexecUserGroup user1 user1
</IfModule>
</IfModule>

<Directory /var/www/test>
AllowOverride all
Options Indexes FollowSymlinks
DirectoryIndex index.php index.html
Require all granted
</Directory>
</VirtualHost>


This vhost is executed with user1 permissions.

We need this vhost/user have access to /home/*/public_html dirs via web (read and write files there). Is this possible and how can be achieved if possible?

Thanks.
Rate this post:
  1. 14.03.2017 15:03:33
  2. # 1
rahnev Accepted Answer
Posts: 11
Joined: 06.07.2016
0
Votes
Undo
Yes, something like this. It'a project that need access to them.
  1. 15.03.2017 07:03:39
  2. # 2
rahnev Accepted Answer
Posts: 11
Joined: 06.07.2016
0
Votes
Undo
Can you offer some alternative? This particular user/vhost have to read and write files somewhere where all other vhosts/users can read and use them.
  1. 17.03.2017 07:03:15
  2. # 3
rahnev Accepted Answer
Posts: 11
Joined: 06.07.2016
0
Votes
Undo
Thanks Bogdan. I managed to do this the same way as you suggested. Thanks.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.