Discussion:
[Proftpd-user] VirtualHost problem
Martin Latal
2007-09-19 13:27:43 UTC
Permalink
Hi,

does anyone have any experience with VirtualHost sections in
proftpd.confbeing ignored?

I have a virtual host host.domain.com and a set of virtual users in that
section (AuthUserFile, AuthGroupFile).
I am pretty sure that the user/group files are correct, because if I move
them into the default server section, I can login with the users in them. On
the other hand, if I try to ftp to the virtual host, I fail to get in (the
log says something like "user does not exist").

It looks like the virtualHost section is ignored, even if the hostname is
exactly the one that I use to log in!

Thanks for any help, I have been fighting it the last 5 nights :)

Martin

P.S. I am sure the DNS for the given VirtualHost points to the correct
machine IP - just in case somebody asks...
Barry Brimer
2007-09-19 13:34:00 UTC
Permalink
Post by Martin Latal
Hi,
does anyone have any experience with VirtualHost sections in
proftpd.confbeing ignored?
It looks like the virtualHost section is ignored, even if the hostname is
exactly the one that I use to log in!
There is no such thing as name-based virtual hosts, as you may be used to
in apache. The FTP protocol does not support that. It has nothing to do
with proftpd. More information at
<http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-Vhost.html>

Hope this helps.

Barry
Patrick Muldoon
2007-09-19 13:36:18 UTC
Permalink
Post by Martin Latal
Hi,
does anyone have any experience with VirtualHost sections in
proftpd.conf being ignored?
I have a virtual host host.domain.com and a set of virtual users in
that section (AuthUserFile, AuthGroupFile).
I am pretty sure that the user/group files are correct, because if
I move them into the default server section, I can login with the
users in them. On the other hand, if I try to ftp to the virtual
host, I fail to get in (the log says something like "user does not
exist").
It looks like the virtualHost section is ignored, even if the
hostname is exactly the one that I use to log in!
Thanks for any help, I have been fighting it the last 5 nights :)
Martin
P.S. I am sure the DNS for the given VirtualHost points to the
correct machine IP - just in case somebody asks
unless virtual host has a different IP than other ftp instances, it
will not work, Virtual Host in FTP not the same as HTTP (ie there is
not host header).

-Patrick

--
Patrick Muldoon
Network/Software Engineer
INOC (http://www.inoc.net)
PGPKEY (http://www.inoc.net/~doon)
Key ID: 0x370D752C

RAM DISK is not an installation procedure!
Martin Latal
2007-09-19 13:42:50 UTC
Permalink
THANKS guys!
I have read it somewhere, but thought it was an attribute of an older
version of proftpd, not the ftp protocol itself.

So what setup would you recommend for multiple domains on one machine?
Having usernames in the format ***@domain all stored in the same file,
probably?

Cheers,
Martin
Post by Patrick Muldoon
Post by Martin Latal
Hi,
does anyone have any experience with VirtualHost sections in
proftpd.conf being ignored?
I have a virtual host host.domain.com and a set of virtual users in
that section (AuthUserFile, AuthGroupFile).
I am pretty sure that the user/group files are correct, because if
I move them into the default server section, I can login with the
users in them. On the other hand, if I try to ftp to the virtual
host, I fail to get in (the log says something like "user does not
exist").
It looks like the virtualHost section is ignored, even if the
hostname is exactly the one that I use to log in!
Thanks for any help, I have been fighting it the last 5 nights :)
Martin
P.S. I am sure the DNS for the given VirtualHost points to the
correct machine IP - just in case somebody asks
unless virtual host has a different IP than other ftp instances, it
will not work, Virtual Host in FTP not the same as HTTP (ie there is
not host header).
-Patrick
--
Patrick Muldoon
Network/Software Engineer
INOC (http://www.inoc.net)
PGPKEY (http://www.inoc.net/~doon)
Key ID: 0x370D752C
RAM DISK is not an installation procedure!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
Continue reading on narkive:
Loading...