I have ISPConfig with apache installed on Debian 12. When I'm creating a Vhost subdomain and added DNS A record for the subdomain I got 403 and a message: "You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe". How to fix?
are there any files in that folder? if indexing is disabled and the folder is empty it'll display the 403 error.
The problem is in the permissions of parent directory. It is creating without read and execute for groups and others by default, when vhost subdomain is created. How to change this?
Which exact path did you use? Vhost subdomains are e.g. used when you want to access a folder within the docroot of the parent site and the docroot of the parent site must already have read access, otherwise the parent site would not work by itself. And in general, one should not use vhost subdomains at all, its always better to create a new website fr the subdomain.
I create all subdomains in client1/web1/subdomainname/public_html. The directory with subdomainname is with rx permissions, but public_html not. I can't create them as a new site, because I'm using git repos with public_html/site'sFiles/ structure as most hositing providers. That's why I chose vhost subdomain variant.
Please do not set the security level to medium. It is a setting for legacy systems. Change the folder permission manually until we release an ISPConfig version that addresses the issue if needed.
It removes security barriers between websites on the server; I won't use it if the server is connected. If you use the system only as an internal dev system system behind a firewall that blocks external access, then using that setting should be OK.