1

I'm currently running an ftp server (vsftpd) on my site say www.domain.com. I'd like to change this so users can type in ftp.domain.com instead of www.domain.com to get to my ftp.

I'm confused with the process here. I'm using Godaddy for my domains. I assume I have to create a subdomain. Although it sounds like I may need to just forward my domain to this subdomain. But wouldn't that generate duplicate content in Google's eyes?

What is the process I need to do to set this up? Thanks in advance.

Tom
  • 163

2 Answers2

2

Create a Host A record in DNS manager with name ftp to your IP of FTP server. OR

Assign a CNAME to www.domain.com with name ftp

I hope this video might be helpful: https://www.youtube.com/watch?v=qqABLv7XK34

1

You will need to change your domain dns settings to point ftp.domain.com to your server's IP address. If you have Apache running, you could use virtual hosts to make sure that ftp.domain.com does not point to your website.

<VirtualHost *:80>
   DocumentRoot /var/www/
   ServerName domain.com
   ServerAlias www.domain.com
</VirtualHost>

If you configure nothing else, only your website would be accessible under domain.com or www.domain.com. Your FTP site would be accessible under domain.com, www.domain.com and ftp.domain.com unless you did something similar.

kobaltz
  • 14,896