OVH Community, your new community space.

proftpd virtual host directive


crowarth
09-12-2013, 04:33
It does, but at first I had it wrong All working now - mirroring CentOS to my hearts content. :-D

Quote Originally Posted by Myatu
Doesn't the following help? (From their docs):

Code:
# First virtual server

  ServerName			"Virtual.com's FTP Server"

  MaxClients			10
  MaxLoginAttempts		1

  # DeferWelcome prevents proftpd from displaying the servername
  # until a client has authenticated.
  DeferWelcome			on

  # Limit normal user logins, because we only want to allow
  # guest logins.
  
    DenyAll
  

  # Next, create a "guest" account (which could be used
  # by a customer to allow private access to their web site, etc)
  
    User			cust1
    Group			cust1
    AnonRequirePassword		on

    
      AllowAll
    

    HideUser			root
    HideGroup			root

    # A private directory that we don't want the user getting in to.
    
      
        DenyAll
      
    
  

Myatu
08-12-2013, 21:55
Doesn't the following help? (From their docs):

Code:
# First virtual server

  ServerName			"Virtual.com's FTP Server"

  MaxClients			10
  MaxLoginAttempts		1

  # DeferWelcome prevents proftpd from displaying the servername
  # until a client has authenticated.
  DeferWelcome			on

  # Limit normal user logins, because we only want to allow
  # guest logins.
  
    DenyAll
  

  # Next, create a "guest" account (which could be used
  # by a customer to allow private access to their web site, etc)
  
    User			cust1
    Group			cust1
    AnonRequirePassword		on

    
      AllowAll
    

    HideUser			root
    HideGroup			root

    # A private directory that we don't want the user getting in to.
    
      
        DenyAll
      
    
  

crowarth
08-12-2013, 21:22
Hey guys and girls,

So I'm messing around with virtual host entries for Proftpd. I've got my main config set up with:

Code:
socketBindTight                 on
So that the server just refuses the connection rather than say that "500 Sorry, no server available to handle request on xxx.xxx.xxx.xxx."

So now I've got one virtual host set up for one domain that's bound to a fail-over, but within that virtual host i want to create an anonymous block within it. The current virtual host block looks like this:

Code:

        ServerName              domain.com
        Port 21
        DefaultRoot             ~
        AllowOverwrite          on
        Umask                   002
Anything I've found on Google doesn't help a lot, but I'm still trying. If anyone can offer input on this, that'd be great!