File: //etc/apache2/sites-enabled/tenboknl01.conf
# Auto generated VHOST configuration for Hostingpackage tenboknl01
#############
# tenbok.nl #
#############
<VirtualHost 171.22.67.17:80 [2a04:8400:2:1::20f]:80>
ServerAdmin support@resellerdns.nl
ServerName tenbok.nl
ServerAlias www.tenbok.nl
DocumentRoot /home/tenboknl01/tenbok.nl/
Redirect permanent /phpmyadmin https://hosting103.resellerdns.nl/phpmyadmin
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/tenboknl01/tenbok.nl>
Options MultiViews IncludesNoExec ExecCGI FollowSymlinks Includes
AllowOverride FileInfo AuthConfig Limit Indexes Options=All,MultiViews
Require all granted
</Directory>
ErrorLog /var/log/apache2/hostingpackages/tenboknl01/tenbok.nl-error.log
LogLevel warn
CustomLog /var/log/apache2/hostingpackages/tenboknl01/tenbok.nl-access.log combined
AccessFileName .htaccess
Protocols h2 http/1.1
AddDefaultCharset utf-8
<IfModule proxy_fcgi_module>
<IfModule setenvif_module>
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
<FilesMatch ".+\.ph(?:ar|p|tml)$">
SetHandler "proxy:unix:/run/php/php7.4-fpm-tenboknl01.sock|fcgi://localhost"
</FilesMatch>
<FilesMatch ".+\.phps$">
Require all denied
</FilesMatch>
<FilesMatch "^\.ph(?:ar|p|ps|tml)$">
Require all denied
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/.well-known/
RewriteRule ^(.*)$ https://hosting103.resellerdns.nl$1 [P]
SSLProxyEngine On
</IfModule>
</VirtualHost>
##############################
# tenbok.nl.domainpreview.nl #
##############################
<VirtualHost 171.22.67.17:80 [2a04:8400:2:1::20f]:80>
ServerAdmin support@resellerdns.nl
ServerName tenbok.nl.domainpreview.nl
ServerAlias www.tenbok.nl.domainpreview.nl
DocumentRoot /home/tenboknl01/tenbok.nl/
Redirect permanent /phpmyadmin https://hosting103.resellerdns.nl/phpmyadmin
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/tenboknl01/tenbok.nl>
Options MultiViews IncludesNoExec ExecCGI FollowSymlinks Includes
AllowOverride FileInfo AuthConfig Limit Indexes Options=All,MultiViews
Require all granted
</Directory>
ErrorLog /var/log/apache2/hostingpackages/tenboknl01/tenbok.nl.domainpreview.nl-error.log
LogLevel warn
CustomLog /var/log/apache2/hostingpackages/tenboknl01/tenbok.nl.domainpreview.nl-access.log combined
AccessFileName .htaccess
Protocols h2 http/1.1
AddDefaultCharset utf-8
<IfModule proxy_fcgi_module>
<IfModule setenvif_module>
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
<FilesMatch ".+\.ph(?:ar|p|tml)$">
SetHandler "proxy:unix:/run/php/php7.4-fpm-tenboknl01.sock|fcgi://localhost"
</FilesMatch>
<FilesMatch ".+\.phps$">
Require all denied
</FilesMatch>
<FilesMatch "^\.ph(?:ar|p|ps|tml)$">
Require all denied
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/.well-known/
RewriteRule ^(.*)$ https://hosting103.resellerdns.nl$1 [P]
SSLProxyEngine On
</IfModule>
</VirtualHost>