Create Virtual Directory in IIS [C#/.Net]
If you need to create a Virtual Directory in IIS, this is the resource you’re looking for.
It’s pretty straightforward. If you need to create FTP accounts for users who sign-up for your service, for example, the simplest way would be to:
1) Add a Local Windows User Account or an Active Directory account for the user
2) Create a Virtual Directory in IIS with the SAME username, pointing to the FTP directory
The Virtual Directory is only useful if you’re using IIS’s FTP server. If there is a Virtual Directory named after the person logging in, it directly takes them to their folder. Keep in mind that permissions are still a problem. For example, a user can wander away from their directory into other user directories. This is something you’ll need to work on by adding groups, setting appropriate permissions to users you create, etc.
I am yet to come across a good Windows based FTP server which has a good scripting interface. The ones available are pretty basic. I looked at GlobalScape, RaidenFTP and lots of others. RaidenFTP is comparatively easier to interact with because the settings are mostly in text files. So you have a class to interact with the text files and you have it all. GlobalScape provide a horribly documented COM component.
The Raiden Support Team also sent me some settings for a heavy loaded server. Read more if you want them.
FORCE_ACTIVE_BIND_PORT=20 <- for compatibility with some routers
and after you setup your server you have *.ftpd file
USE_MAXUSER_PER_IP=0 <- do not restrict it, otherwise it will overload
your server because users keep hammering your server
USE_MEM_DB=1 <- FASTest way , but need to load user db to memory
everytime, otherwise set to 0
(when you have advanced license it is not needed, use odbc instead)
Note that these settings are for the Advanced Edition of RaidenFTPD. I haven’t had the chance to test them out yet. The solution I had to implement works fine for now with IIS FTP Server. More after I check Raiden out.