Hello,
I have been using Virtualmin for about 2 years without any issues.
Today I have created a new virutal host (shampoos.net) no issue in creating the virtual host.
But, first I realized I can not access via FTP - all my other accounts are fine.
Then I have added an index.html file via File Manager but the URL goes to my server’s default virtualhost which is http://1-e-1.com
Any idea for troubleshooting?
Thanks in advance,
Aslan
Server specs:
Operating system | CentOS Linux 7.7.1908 |
---|---|
Perl version | 5.016003 |
Path to Perl | /usr/bin/perl |
BIND version | 9.9 |
Postfix version | 2.10.1 |
Mail injection command | /usr/lib/sendmail -t |
Apache version | 2.4.6 |
PHP versions | 5.4.16, 5.4.16, 7.0.27, 7.1.33 |
Webalizer version | 2.23-08 |
Logrotate version | 3.8.6 |
MySQL version | 5.5.64 |
ProFTPD version | 1.35 |
SpamAssassin version | 3.4.0 |
ClamAV version | 0.102.2 |
================
See the httpd.conf for this new virtual host - shampoos.net:
<VirtualHost 217.182.196.30:80>
SuexecUserGroup "#1193" "#1132"
ServerName shampoos.net
ServerAlias www.shampoos.net
ServerAlias webmail.shampoos.net
ServerAlias admin.shampoos.net
DocumentRoot /home/shampoos/public_html
ErrorLog /var/log/virtualmin/shampoos.net_error_log
CustomLog /var/log/virtualmin/shampoos.net_access_log combined
ScriptAlias /cgi-bin/ /home/shampoos/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/shampoos/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
AddHandler fcgid-script .php5.4
AddHandler fcgid-script .php7.0
AddHandler fcgid-script .php7.1
FCGIWrapper /home/shampoos/fcgi-bin/php7.0.fcgi .php
FCGIWrapper /home/shampoos/fcgi-bin/php5.fcgi .php5
FCGIWrapper /home/shampoos/fcgi-bin/php5.4.fcgi .php5.4
FCGIWrapper /home/shampoos/fcgi-bin/php7.0.fcgi .php7.0
FCGIWrapper /home/shampoos/fcgi-bin/php7.1.fcgi .php7.1
</Directory>
<Directory /home/shampoos/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.shampoos.net
RewriteRule ^(.*) https://shampoos.net:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.shampoos.net
RewriteRule ^(.*) https://shampoos.net:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
RemoveHandler .php5.4
RemoveHandler .php7.0
RemoveHandler .php7.1
php_admin_value engine Off
FcgidMaxRequestLen 1073741824
</VirtualHost>
<VirtualHost 217.182.196.30:443>
SuexecUserGroup "#1193" "#1132"
ServerName shampoos.net
ServerAlias www.shampoos.net
ServerAlias webmail.shampoos.net
ServerAlias admin.shampoos.net
DocumentRoot /home/shampoos/public_html
ErrorLog /var/log/virtualmin/shampoos.net_error_log
CustomLog /var/log/virtualmin/shampoos.net_access_log combined
ScriptAlias /cgi-bin/ /home/shampoos/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/shampoos/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
AddHandler fcgid-script .php5.4
AddHandler fcgid-script .php7.0
AddHandler fcgid-script .php7.1
FCGIWrapper /home/shampoos/fcgi-bin/php7.0.fcgi .php
FCGIWrapper /home/shampoos/fcgi-bin/php5.fcgi .php5
FCGIWrapper /home/shampoos/fcgi-bin/php5.4.fcgi .php5.4
FCGIWrapper /home/shampoos/fcgi-bin/php7.0.fcgi .php7.0
FCGIWrapper /home/shampoos/fcgi-bin/php7.1.fcgi .php7.1
</Directory>
<Directory /home/shampoos/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.shampoos.net
RewriteRule ^(.*) https://shampoos.net:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.shampoos.net
RewriteRule ^(.*) https://shampoos.net:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
RemoveHandler .php5.4
RemoveHandler .php7.0
RemoveHandler .php7.1
php_admin_value engine Off
FcgidMaxRequestLen 1073741824
SSLEngine on
SSLCertificateFile /home/shampoos/ssl.cert
SSLCertificateKeyFile /home/shampoos/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
</VirtualHost>