Previous Next

Thread: Creating a *flexible* FTP

Last post 08-02-2008 5:48 AM by boen_robot. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 07-31-2008, 1:17 PM

    • boen_robot
    • Top 100 Contributor
    • Joined on 07-31-2008, 11:31 AM
    • Plovdiv
    • Posts 28

    Creating a *flexible* FTP

    Hello. I'm currently trying to configure a new FTP server here (with a single IP and multiple domain names aliased to it) and I'm trying to make a configuration that would apply for a certain set of users.

    I have a special domain (for the purpose of this example: example.org) in which I want to give a different root folder to each user accessing that FTP site. For example:

    Host: example.org
    Username: user1
    Password: ****
    Directory to show: X:\XXX\user1\

    Host: example.org
    Username: user2
    Password: ****
    Directory to show: X:\XXX\user2\

    I see how to create aliases appearing only for users, but there appears to be no way to make "/" a per-user alias itself.

     Is there a way to automatically configure the server so that it bases the last portion of the folder to the username inputted? I tried using "X:\XXX\%USERNAME%\" as a root folder for this site, but that appears to always resolve to "X:\XXX\Administrator\", regardless of the username.

     Do tell if any additional information is required. I'd appreciate any help regarding either issue.

     [eidt]Solved. I had to place all users in a directory called "LocalUser" and turn on user isolation per physical directorties. But... isn't there a way to omit the "LocalUser" part? At least .config files somehow?[/edit]

  • 08-02-2008, 5:48 AM In reply to

    • boen_robot
    • Top 100 Contributor
    • Joined on 07-31-2008, 11:31 AM
    • Plovdiv
    • Posts 28

    Re: Creating a *flexible* FTP

    I have another issue that I would sum up with the same title.

     I've created a few FTP sites (for now just two really) each of which is binded to a different domain (as described here: http://learn.iis.net/page.aspx/320/using-virtual-host-names/). All domains are already being configured to the this same server. However, the only way to access the FTP right now is to prefix the username with the domain name. For example:

    Host: example.com
    Username: example.com|user1
    Password: ****
     
    Host: example.net
    Username: example.net|user2
    Password: ****
     
     Is there a way for the FTP server to automatically detect the domain/hostname by which the FTP server was accessed and then accept the plain username in the username field, i.e. like:
     
    Host: example.com
    Username: user1
    Password: ****
     
    Host: example.net
    Username: user2
    Password: ****
     
    If I try it like that with the same configuration I get "Hostname didn't match any configured ftp site." error. My server is behind a router and the domains are redirected to the external IP of the router (which then forwards the requests to the server).

Page 1 of 1 (2 items)
Page view counter