File: //etc/apache2/sites-enabled/aqarnomics.com.conf
<VirtualHost 158.220.100.248:80>
SuexecUserGroup #1008 #1008
ServerName aqarnomics.com
ServerAlias www.aqarnomics.com
ServerAlias mail.aqarnomics.com
ServerAlias webmail.aqarnomics.com
ServerAlias admin.aqarnomics.com
DocumentRoot /home/aqarnomics/public_html
ErrorLog /var/log/virtualmin/aqarnomics.com_error_log
CustomLog /var/log/virtualmin/aqarnomics.com_access_log combined
ScriptAlias /cgi-bin/ /home/aqarnomics/cgi-bin/
ScriptAlias /awstats /home/aqarnomics/cgi-bin/awstats.pl
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/aqarnomics/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AddHandler fcgid-script .php
AddHandler fcgid-script .php8.1
AddHandler fcgid-script .php8.4
FCGIWrapper /home/aqarnomics/fcgi-bin/php8.4.fcgi .php
FCGIWrapper /home/aqarnomics/fcgi-bin/php8.1.fcgi .php8.1
FCGIWrapper /home/aqarnomics/fcgi-bin/php8.4.fcgi .php8.4
</Directory>
<Directory /home/aqarnomics/cgi-bin>
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
ProxyPass /.well-known !
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.aqarnomics.com
RewriteRule ^/(?!.well-known)(.*)$ https://aqarnomics.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.aqarnomics.com
RewriteRule ^/(?!.well-known)(.*)$ https://aqarnomics.com:10000/ [R]
FcgidMaxRequestLen 1073741824
RedirectMatch ^/awstats$ /awstats/
<Files awstats.pl>
AuthName "aqarnomics.com statistics"
AuthType Basic
AuthUserFile /home/aqarnomics/.awstats-htpasswd
require valid-user
</Files>
IPCCommTimeout 61
</VirtualHost>
<VirtualHost 158.220.100.248:443>
SuexecUserGroup #1008 #1008
ServerName aqarnomics.com
ServerAlias www.aqarnomics.com
ServerAlias mail.aqarnomics.com
ServerAlias webmail.aqarnomics.com
ServerAlias admin.aqarnomics.com
DocumentRoot /home/aqarnomics/public_html
ErrorLog /var/log/virtualmin/aqarnomics.com_error_log
CustomLog /var/log/virtualmin/aqarnomics.com_access_log combined
ScriptAlias /cgi-bin/ /home/aqarnomics/cgi-bin/
ScriptAlias /awstats /home/aqarnomics/cgi-bin/awstats.pl
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/aqarnomics/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AddHandler fcgid-script .php
AddHandler fcgid-script .php8.1
AddHandler fcgid-script .php8.4
FCGIWrapper /home/aqarnomics/fcgi-bin/php8.4.fcgi .php
FCGIWrapper /home/aqarnomics/fcgi-bin/php8.1.fcgi .php8.1
FCGIWrapper /home/aqarnomics/fcgi-bin/php8.4.fcgi .php8.4
</Directory>
<Directory /home/aqarnomics/cgi-bin>
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
ProxyPass /.well-known !
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.aqarnomics.com
RewriteRule ^/(?!.well-known)(.*)$ https://aqarnomics.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.aqarnomics.com
RewriteRule ^/(?!.well-known)(.*)$ https://aqarnomics.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php8.1
RemoveHandler .php8.4
FcgidMaxRequestLen 1073741824
SSLEngine on
SSLCertificateFile /etc/ssl/virtualmin/17711360388819/ssl.cert
SSLCertificateKeyFile /etc/ssl/virtualmin/17711360388819/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
RedirectMatch ^/awstats$ /awstats/
<Files awstats.pl>
AuthName "aqarnomics.com statistics"
AuthType Basic
AuthUserFile /home/aqarnomics/.awstats-htpasswd
require valid-user
</Files>
SSLCACertificateFile /etc/ssl/virtualmin/17711360388819/ssl.ca
IPCCommTimeout 61
</VirtualHost>