I have two servers X and Y.
Server X:
I have a VHOST for the subdomain test.api.konfigurator.company.de pointing to a directory which simply has a index.html containing the word "it works!".
First I tested it locally, by editing my hosts file in windows. That worked, the text "it works!" is showing if I call test.api.konfigurator.company.de from the browser.
So this made sure that the VHOST works. I deleted the record from my "hosts" file again.
Server Y:
I created a subdomain test.api.konfigurator.company.de from cpanel.
The process of creating the subdomain also created the A-Records.
I added this additional A-Record to company.de
:
test.api.konfigurator.company.de. 300 A 3.70.50.1XX
If I ping test.api.konfigurator.company.de then I get 3.70.50.1XX so that worked.
So everything should be ready.
Expected behaviour:
If I open https://test.api.konfigurator.company.de from the browser, then the content "it works!" should show.
Actual behaviour:
Forbidden You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to
use an ErrorDocument to handle the request.
VHOST:
<VirtualHost *:80>
ServerName test.api.konfigurator.company.de
ServerAdmin webmaster@localhost
DocumentRoot /var/www/company/test.api.konfigurator.company.de/public
<Directory /var/www/company/test.api.konfigurator.company.de/public>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/api_company_konfigurator_error.log
CustomLog ${APACHE_LOG_DIR}/api_company_konfigurator_access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet