SOLVED Problem ftp.domain.com

mickael

Well-Known Member
Aug 3, 2014
57
9
58
cPanel Access Level
Root Administrator
Hi

The website subdomain REDACTED(ftp subdomain) I noticed that it was referenced on Google instead of REDACTED (main domain)

I have noticed that several of my domains are affected, still with ftp.domain.com, or too ns1.domain.com

How to fix?

Regards
 
Last edited by a moderator:

devil2580

Member
Sep 6, 2021
13
3
3
kokata
cPanel Access Level
Root Administrator
hi

Hope you are well

this problem seems to be the DNS issue. Please contact your name server provider to look into this matter.

Feel free to contact us for more help.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,585
2,614
363
cPanel Access Level
Root Administrator
When I check the ftp subdomain you mentioned (which I removed from the post for security reasons) I see there is content responding there. Anything with web content will likely get indexed by Google.

Normally I would expect common subdomains like ns1. or ftp. to show the default "sorry" page, so there is likely redirection happening on your site that causes them to show real content.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,585
2,614
363
cPanel Access Level
Root Administrator
Thanks for that clarification. What you want to do is set the default SSL vhost as outlined here:


Can you try that and let me know if that helps?
 

mickael

Well-Known Member
Aug 3, 2014
57
9
58
cPanel Access Level
Root Administrator
I don't see anything changed for the subdomain in "ftp.site.com". On the other hand, maybe it works for other things.

Here is my problem to summarize:

Actually my cpanel / whm name is called "ns.site.com" and it works in both ssl and nossl

Going to https://ns.site.com:2087 works fine. All is well.
By going to http://ns.site.com I get the sorry page, it's okay.
Going to https://ns.site.com now everything is fine I get the sorry page.
By going to http://ftp.site.com I get the sorry page
By going to https://ftp.site.com I get a "Forbidden 403" page and not the sorry page, why? I'm sure the whole problem of all my ftp.domains.com domains can be fixed if I know how to fix it by showing sorry page
 

mickael

Well-Known Member
Aug 3, 2014
57
9
58
cPanel Access Level
Root Administrator
The directory is public_html of its "site.com", each "ftp.site.com" displays the content of its own site.com

Example:
lfbn-rei-1-3xxxx.fr - - [06/Oct/2021:16:35:01 +0200] "GET /css/font-awesome.css HTTP/1.1" 200 4288 "https://ftp.site.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:93.0) Gecko/20100101
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,585
2,614
363
cPanel Access Level
Root Administrator
That's interesting, although I don't have a good explanation of that on my end. If you have root access, could you submit a ticket to our team so we can examine the system directly? If you are able to submit a ticket, please post the number here so I can follow along and keep this thread updated.
 

mickael

Well-Known Member
Aug 3, 2014
57
9
58
cPanel Access Level
Root Administrator
Hi

Yes I cloned this:
Code:
/var/cpanel/templates/apache2_4/ssl_vhost.default
to

Code:
/var/cpanel/templates/apache2_4/ssl_vhost.local
this local file has been modified, at the very top I added this:

Apache config:
<VirtualHost[% FOREACH ipblock IN vhost.ips %] [% ipblock.ip %]:[% ipblock.port %][% END %]>
[% IF vhost.serveradmin -%]
ServerName ftp.[% vhost.serveradmin %]
[% ELSE %]
ServerName ftp.[% vhost.servername %]
[% END -%]
DocumentRoot /var/www/html
<IfModule suphp_module>
suPHP_UserGroup nobody nobody
</IfModule>
<Directory "/var/www/html">
AllowOverride All
</Directory>
<IfModule ssl_module>
SSLEngine on

SSLCertificateFile /var/cpanel/ssl/cpanel/cpanel.pem
SSLCertificateKeyFile /var/cpanel/ssl/cpanel/cpanel.pem
SSLCertificateChainFile /var/cpanel/ssl/cpanel/cpanel.pem
SSLUseStapling Off

</IfModule>
<IfModule security2_module>
SecRuleEngine On
</IfModule>
</VirtualHost>
The case is settled I didn't know, I would have learned something useful.

Regards
 
  • Like
Reactions: cPRex