public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] OT: howto setup vsftpd and virtual hosts by NAME not by IP
       [not found] <003501c80002$f6720020$450a0a0a@locutus>
@ 2007-09-26  7:02 ` Crayon Shin Chan
  2007-09-26 19:24   ` Jarry
  0 siblings, 1 reply; 6+ messages in thread
From: Crayon Shin Chan @ 2007-09-26  7:02 UTC (permalink / raw
  To: gentoo-user

On Wednesday 26 September 2007, Daevid Vincent wrote:

> the example /usr/share/doc/vsftpd-2.0.5-r3/examples/VIRTUAL_HOSTS only
> talks about how to do this with separate IP addresses, is there a way
> to have ftp.daevid.com and ftp.company.com all work from the same
> server IP but have different configs, users, directories?

You can't do virtual hosting using domain names in ftp - unlike http, ftp 
doesn't support it. The best you can do is when different users login 
they see a different section of the directory tree.

-- 
Crayon
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] OT: howto setup vsftpd and virtual hosts by NAME not by IP
  2007-09-26  7:02 ` [gentoo-user] OT: howto setup vsftpd and virtual hosts by NAME not by IP Crayon Shin Chan
@ 2007-09-26 19:24   ` Jarry
  2007-09-26 20:00     ` Daevid Vincent
  2007-09-27  4:33     ` Crayon Shin Chan
  0 siblings, 2 replies; 6+ messages in thread
From: Jarry @ 2007-09-26 19:24 UTC (permalink / raw
  To: gentoo-user

Crayon Shin Chan wrote:

> You can't do virtual hosting using domain names in ftp

I think wu-ftpd does support virtual ftp-hosting using domain-names.
The only limitation comes from single common passwd file, i.e.
you can not have two different users on two different virtual
ftp-server having the same login name...

Jarry

-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [gentoo-user] OT: howto setup vsftpd and virtual hosts by NAME not by IP
  2007-09-26 19:24   ` Jarry
@ 2007-09-26 20:00     ` Daevid Vincent
  2007-09-27  4:33     ` Crayon Shin Chan
  1 sibling, 0 replies; 6+ messages in thread
From: Daevid Vincent @ 2007-09-26 20:00 UTC (permalink / raw
  To: gentoo-user


> -----Original Message-----
> From: Jarry [mailto:jarry@gmx.net] 
> Sent: Wednesday, September 26, 2007 12:24 PM
> 
> Crayon Shin Chan wrote:
> 
> > You can't do virtual hosting using domain names in ftp
> 
> I think wu-ftpd does support virtual ftp-hosting using domain-names.
> The only limitation comes from single common passwd file, i.e.
> you can not have two different users on two different virtual
> ftp-server having the same login name...
> 
> Jarry

Thanks for the reply. Isn't wu-ftpd very insecure?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] OT: howto setup vsftpd and virtual hosts by NAME not by IP
  2007-09-26 19:24   ` Jarry
  2007-09-26 20:00     ` Daevid Vincent
@ 2007-09-27  4:33     ` Crayon Shin Chan
  2007-09-27  9:35       ` jarry
  1 sibling, 1 reply; 6+ messages in thread
From: Crayon Shin Chan @ 2007-09-27  4:33 UTC (permalink / raw
  To: gentoo-user

On Thursday 27 September 2007, Jarry wrote:
> Crayon Shin Chan wrote:
> > You can't do virtual hosting using domain names in ftp
>
> I think wu-ftpd does support virtual ftp-hosting using domain-names.

I would love to know how it does the impossible - since the ftp protocol 
doesn't know anything about domain names :)

> The only limitation comes from single common passwd file, i.e.
> you can not have two different users on two different virtual
> ftp-server having the same login name...

That's because it simply boils down to ftp not being able to support 
virtual name hosting. In reality, the above fudge goes something like 
this:

  domain: ftp.virtual.a.example.com
  user/pass: usera/passa
  directory: /var/ftp/usera

  domain: ftp.virtual.b.example.com
  user/pass: userb/passb
  directory: /var/ftp/userb

userb can actually login using either ftp.virtual.a.example.com or 
ftp.virtual.b.example.com. The different domains is just a convenience 
for the users and makes not one bit of difference to an ftp server 
because it only knows about which IP address(es) to listen to.

-- 
Crayon
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] OT: howto setup vsftpd and virtual hosts by NAME not by IP
  2007-09-27  4:33     ` Crayon Shin Chan
@ 2007-09-27  9:35       ` jarry
  2007-09-27 10:26         ` Crayon Shin Chan
  0 siblings, 1 reply; 6+ messages in thread
From: jarry @ 2007-09-27  9:35 UTC (permalink / raw
  To: gentoo-user

Crayon Shin Chan <crayon.shin.chan.uk@gmail.com> wrote:

> > I think wu-ftpd does support virtual ftp-hosting using domain-names.
> 
> I would love to know how it does the impossible - since the ftp protocol 
> doesn't know anything about domain names :)

http://tldp.org/HOWTO/Virtual-Services-HOWTO-7.html
http://www.wu-ftpd.org/man/ftpaccess.html

wu-ftpd has very strong "virtual" configuration option:
virtual <address> <root|banner|logfile> <path>
virtual <address> <hostname|email> <string>
virtual <address> allow <username> [<username> ...]
virtual <address> deny <username> [<username> ...]
virtual <address> passwd <file>  (Use  a  different passwd file for the virtual domain)
virtual <address> shadow <file>  (Use  a  different passwd file for the virtual domain)

But I have not tested it personally...

Jarry

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] OT: howto setup vsftpd and virtual hosts by NAME not by IP
  2007-09-27  9:35       ` jarry
@ 2007-09-27 10:26         ` Crayon Shin Chan
  0 siblings, 0 replies; 6+ messages in thread
From: Crayon Shin Chan @ 2007-09-27 10:26 UTC (permalink / raw
  To: gentoo-user

On Thursday 27 September 2007, jarry@gmx.net wrote:

> wu-ftpd has very strong "virtual" configuration option:

It is not virtual hosting, it is merely presenting different directories 
depending on the user/password (the domain plays no part) - although that 
not mean it's not useful. IOW it is not comparable to how http does 
virtual hosting.

BTW vsftpd (which is what I believe the OP is using) has similar 
user/group configuration.

-- 
Crayon
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-09-27 10:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <003501c80002$f6720020$450a0a0a@locutus>
2007-09-26  7:02 ` [gentoo-user] OT: howto setup vsftpd and virtual hosts by NAME not by IP Crayon Shin Chan
2007-09-26 19:24   ` Jarry
2007-09-26 20:00     ` Daevid Vincent
2007-09-27  4:33     ` Crayon Shin Chan
2007-09-27  9:35       ` jarry
2007-09-27 10:26         ` Crayon Shin Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox