Print Page | Close Window

How to: FTP subdomains on IIS ???

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5834
Printed Date: 30 March 2026 at 4:29am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to: FTP subdomains on IIS ???
Posted By: Bluefrog
Subject: How to: FTP subdomains on IIS ???
Date Posted: 18 September 2003 at 9:17pm

Does anyone know how to do this? I want mutilple ftp servers all on port 21 but with different subdomains. e.g. ftp://mydomain.com:21 - ftp://mydomain.com:21 and ftp://mysub1.mydomain.com:21 - ftp://mysub1.mydomain.com:21 .

I can't find anything that tell me how to get this done.




Replies:
Posted By: Bluefrog
Date Posted: 18 September 2003 at 9:23pm

For http, you can add headers, but how do you get the same effect with ftp on IIS?



Posted By: Diep-Vriezer
Date Posted: 21 September 2003 at 3:21am
Mmmm, use a DNS server?

-------------
Gone..


Posted By: Bluefrog
Date Posted: 21 September 2003 at 9:49am

Originally posted by Diep-Vriezer Diep-Vriezer wrote:

Mmmm, use a DNS server?

That would work if they were on different servers. I want them on the same server... so they have the same IP. DNS only resolves IP addresses. The issue has to do with IIS and it's FTP server.

I must be missing something somewhere, because this seems so trivial. It would be a really lame oversight if IIS couldn't handle such a simple thing.

 



Posted By: Diep-Vriezer
Date Posted: 21 September 2003 at 1:14pm

On second server, I use Red Hat linux and Apache (no asp.net here...) and it works like this:

 - In a control panel, create a new subdomain (always using dns)
 - The subdomain name is a folder, so if the subdomain is test.yoursite.net then the folder on the server is like /test/

I'm sure it must be in dns, since you're using a subdomain on port 21... If not, I dont know!



-------------
Gone..


Posted By: Bluefrog
Date Posted: 22 September 2003 at 6:11am
Thanks. I'll try it. Let's hope that that MS didn't drop the ball yet once again...


Posted By: Bluefrog
Date Posted: 25 September 2003 at 6:48am

Ok - it didn't work... The DNS stuff was already all done - so no worries there.

I set up the folder the same as the subdomain, but it didn't work.

Is IIS that lame? or am I missing something.

 



Posted By: nasa
Date Posted: 27 September 2003 at 7:19am

you said... "That would work if they were on different servers. I want them on the same server... so they have the same IP. DNS only resolves IP addresses. The issue has to do with IIS and it's FTP server."

It is impossible to bind port 21 more than once on a same IP address... unless you use two network card with different ip address and use DNS to resolve your domain and subdomain... You can only make use of this IIS feature if you use Window 2000 server (not professional version)
OR...
if you still want to use the same ip number, you have to have DNS too to help you....

try this configuration....
(Im sure that there is only one FTP server that is bound to port 21 on one network card right?...)
In your Internet Information Services, go to your ftp server properties under you computer/server name... on FTP server tab, in Identification frame set IP address as '[All unassigned]"

I think this is nothing to do with IIS's ftp server only thing that maybe you missed some configurations...

Thanks

 

Thanks



Posted By: Bluefrog
Date Posted: 27 September 2003 at 10:06am

It kind of doesn't have to do with binding to port 21 - it's more related to the FTP protocol. e.g. Win2K server let's you have multiple web sites, given that they all have DNS records, as long as you use HTTP headers. They all are bound to the same port, but are properly redirected. FTP doesn't have any sort of mechanism like that though it seems.

The server is setup properly, and since there is only 1 NIC, whether they IP address is assigned or not won't make a difference.

I've looked and looked and looked, and I don't think this is MS dropping the ball... I'm more inclined to think that it is a limitation of the FTP protocol instead. I could be wrong, but I'm losing my mind trying to get this to work. I've tried everything mentioned above already with no success.

The ONLY thing that I can think of is to:

  1. Set up local user accounts with the same name as the subdomains.
  2. Create directories for the users.
  3. Remove write permissions for all users on all 'subdomain' directories.

e.g. Directory structure:

  • FTPROOT (mydomain.com)
    • downloads (downloads.mydomain.com)
    • something (something.mydomain.com)
    • blah (blah.mydomain.com)

I had thought of doing things that way before, but I really don't want to do it like that. Oh well... such is life I suppose...

 



Posted By: Bluefrog
Date Posted: 27 September 2003 at 10:09am
Originally posted by Diep-Vriezer Diep-Vriezer wrote:

On second server, I use Red Hat linux and Apache (no asp.net here...) and it works like this:

 - In a control panel, create a new subdomain (always using dns)
 - The subdomain name is a folder, so if the subdomain is test.yoursite.net then the folder on the server is like /test/

I'm sure it must be in dns, since you're using a subdomain on port 21... If not, I dont know!

My bad. I screwed up your suggesstion and mixed it with what I wanted to happen. What is needed is for the subdomain/subfolder to be under the root ftp folder.

 



Posted By: Diep-Vriezer
Date Posted: 27 September 2003 at 10:52am
Idd, that structure is what I mean

-------------
Gone..


Posted By: nasa
Date Posted: 28 September 2003 at 5:31am

let's use external dns.. maybe you can try free (redirector) dns (i.e cjb.net), create 2 accounts for those two ftp url.. if it works.. maybe microsoft's dns (or active directory) is actually... sucksssssssss.. :)

* dont use dns integrates with active directory... in my case i use stand alone dns services (no active directory)...

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net