File: //etc/apache2/sites-enabled/divisoplay.com.conf
<VirtualHost *:80>
SuexecUserGroup "#1220" "#1214"
ServerName divisoplay.com
ServerAlias www.divisoplay.com
DocumentRoot /home/divisoplay.com/public_html
# Servir ACME HTTP-01 desde el docroot real del sitio
Alias /.well-known/acme-challenge/ /home/divisoplay.com/public_html/.well-known/acme-challenge/
<Directory "/home/divisoplay.com/public_html/.well-known/acme-challenge/">
Options None
AllowOverride None
Require all granted
</Directory>
ErrorLog /home/divisoplay.com/logs/error_log
CustomLog /home/divisoplay.com/logs/access_log combined
ScriptAlias /cgi-bin/ /home/divisoplay.com/cgi-bin/
ScriptAlias /awstats/ /home/divisoplay.com/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/divisoplay.com/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
Allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
<Directory /home/divisoplay.com/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
ProxyPass /.well-known !
RemoveHandler .php
RemoveHandler .php5.6
RemoveHandler .php7.0
RemoveHandler .php7.2
RemoveHandler .php7.3
RemoveHandler .php7.4
RemoveHandler .php8.0
RemoveHandler .php8.2
RemoveHandler .php8.3
RemoveHandler .php8.4
RemoveHandler .php8.5
<Files awstats.pl>
AuthName "divisoplay.com statistics"
AuthType Basic
AuthUserFile /home/divisoplay.com/.awstats-htpasswd
require valid-user
</Files>
<FilesMatch \.php$>
SetHandler proxy:unix:/run/php/17097307532968039.sock|fcgi://127.0.0.1
</FilesMatch>
</VirtualHost>
<VirtualHost *:443>
SuexecUserGroup "#1220" "#1214"
ServerName divisoplay.com
ServerAlias www.divisoplay.com
DocumentRoot /home/divisoplay.com/public_html
ErrorLog /home/divisoplay.com/logs/error_log
CustomLog /home/divisoplay.com/logs/access_log combined
ScriptAlias /cgi-bin/ /home/divisoplay.com/cgi-bin/
ScriptAlias /awstats/ /home/divisoplay.com/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/divisoplay.com/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
Allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
<Directory /home/divisoplay.com/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
ProxyPass /.well-known !
RemoveHandler .php
RemoveHandler .php5.6
RemoveHandler .php7.0
RemoveHandler .php7.2
RemoveHandler .php7.3
RemoveHandler .php7.4
RemoveHandler .php8.0
RemoveHandler .php8.2
RemoveHandler .php8.3
RemoveHandler .php8.4
RemoveHandler .php8.5
SSLEngine on
SSLCertificateFile /home/divisoplay.com/ssl.cert
SSLCertificateKeyFile /home/divisoplay.com/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
<Files awstats.pl>
AuthName "divisoplay.com statistics"
AuthType Basic
AuthUserFile /home/divisoplay.com/.awstats-htpasswd
require valid-user
</Files>
SSLCACertificateFile /home/divisoplay.com/ssl.ca
<FilesMatch \.php$>
SetHandler proxy:unix:/run/php/17097307532968039.sock|fcgi://127.0.0.1
</FilesMatch>
</VirtualHost>