File: //etc/apache2/sites-enabled/asiamastertours.com.conf
<VirtualHost 139.99.89.198:80 [2402:1f00:8000:800::3c91]:80>
ServerName asiamastertours.com
ServerAlias www.asiamastertours.com
ServerAlias mail.asiamastertours.com
ServerAlias webmail.asiamastertours.com
ServerAlias admin.asiamastertours.com
DocumentRoot /home/asiamastertours/public_html
ErrorLog /var/log/virtualmin/asiamastertours.com_error_log
CustomLog /var/log/virtualmin/asiamastertours.com_access_log combined
DirectoryIndex index.php index.htm index.html
<Directory /home/asiamastertours/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
<Directory /home/asiamastertours/cgi-bin>
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
ProxyPass /.well-known !
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.asiamastertours.com
RewriteRule ^(?!/.well-known)(.*) https://asiamastertours.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.asiamastertours.com
RewriteRule ^(?!/.well-known)(.*) https://asiamastertours.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php7.4
RemoveHandler .php8.1
<FilesMatch \.php$>
SetHandler proxy:unix:/run/php/1713437522303915.sock|fcgi://127.0.0.1
</FilesMatch>
ScriptAlias /awstats /home/asiamastertours/cgi-bin/awstats.pl
RedirectMatch ^/awstats$ /awstats/
<Files awstats.pl>
AuthName "asiamastertours.com statistics"
AuthType Basic
AuthUserFile /home/asiamastertours/.awstats-htpasswd
require valid-user
</Files>
</VirtualHost>
<VirtualHost 139.99.89.198:443 [2402:1f00:8000:800::3c91]:443>
ServerName asiamastertours.com
ServerAlias www.asiamastertours.com
ServerAlias mail.asiamastertours.com
ServerAlias webmail.asiamastertours.com
ServerAlias admin.asiamastertours.com
DocumentRoot /home/asiamastertours/public_html
ErrorLog /var/log/virtualmin/asiamastertours.com_error_log
CustomLog /var/log/virtualmin/asiamastertours.com_access_log combined
DirectoryIndex index.php index.htm index.html
<Directory /home/asiamastertours/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
<Directory /home/asiamastertours/cgi-bin>
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
ProxyPass /.well-known !
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.asiamastertours.com
RewriteRule ^(?!/.well-known)(.*) https://asiamastertours.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.asiamastertours.com
RewriteRule ^(?!/.well-known)(.*) https://asiamastertours.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php7.4
RemoveHandler .php8.1
<FilesMatch \.php$>
SetHandler proxy:unix:/run/php/1713437522303915.sock|fcgi://127.0.0.1
</FilesMatch>
SSLEngine on
SSLCertificateFile /etc/ssl/virtualmin/1713437522303915/ssl.cert
SSLCertificateKeyFile /etc/ssl/virtualmin/1713437522303915/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
ScriptAlias /awstats /home/asiamastertours/cgi-bin/awstats.pl
RedirectMatch ^/awstats$ /awstats/
<Files awstats.pl>
AuthName "asiamastertours.com statistics"
AuthType Basic
AuthUserFile /home/asiamastertours/.awstats-htpasswd
require valid-user
</Files>
SSLCACertificateFile /etc/ssl/virtualmin/1713437522303915/ssl.ca
</VirtualHost>