For some sites, I have manually copied site content to the httpdocs folder of the site.
For example;
Now, in the browser, I get an http 403 (forbidden).
If I disable SELinux (e.g. setenforce 0) everything works. If I re-enable SELinux (e.g. setenforce 1) it stops working again.
I know this works:
What's the 'best practice' here?
Tino
For example;
mv -R /tmp/mysite/* /var/www/vhosts/mydomain.com/httpdocs
chown -R myaccountsacln /var/www/vhosts/mydomain.com/httpdocs
Now, in the browser, I get an http 403 (forbidden).
If I disable SELinux (e.g. setenforce 0) everything works. If I re-enable SELinux (e.g. setenforce 1) it stops working again.
I know this works:
chcon -R -t httpd_sys_content_t /var/www/vhosts/*/httpdocs/
chcon -R -t httpd_sys_content_t /var/www/vhosts/*/subdomains/
What's the 'best practice' here?
Tino
Last edited: