You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Torsten Sauer <da...@googlemail.com> on 2009/05/24 11:38:48 UTC

support for virtual hosts

I started to integrate the ftp server into our own application server and
I'm searching for an option to support virtual hosts. I think here of
virtual hosts like in a web server (e.g. apache ;))...

Is there a possibility to "switch on" this feature or do you see a chance to
integrate it?

Greetings from Germany

Torsten

Re: support for virtual hosts

Posted by Torsten Sauer <da...@googlemail.com>.
Thanks for your answer Niklas.

I though that it wouldn't be easy, but it now seems miles away ;)
I didn't get so in detail with the FTP protocol, but in fact that it doesn't
support namebased virtual hosts (that what I need) I have to find another
way.

To use many IP adresses doesn't solve the problem, same with different
ports... (think of 40 applications and websites on a single machine)

So I think I have to build a user manager that is able to differentiate the
multiple hosts and authenticate against the correct database (something like
"<username>@<host>" as user name or something else).

I appreciate your work and maybe I can contribute some code if I get deeper
into it.

Thanks a lot!

2009/5/24 Niklas Gustavsson <ni...@protocol7.com>

> On Sun, May 24, 2009 at 11:38 AM, Torsten Sauer
> <da...@googlemail.com> wrote:
> > I started to integrate the ftp server into our own application server and
> > I'm searching for an option to support virtual hosts. I think here of
> > virtual hosts like in a web server (e.g. apache ;))...
> >
> > Is there a possibility to "switch on" this feature or do you see a chance
> to
> > integrate it?
>
> Assuming you would like to have different hosts on different IPs/ports
> (since there is nothing like the Host header in FTP)? No, we do not
> support this since some of our components are global (like the user
> manager). We do however have support for multiple listenerna, but the
> main purpose for this is to be able to have SSL and plain listeners
> for the same server. But, any configuration on the listener level is
> of course possible to have separate per local IP/port.
>
> Having better support for being able to have separate user managers
> and so on, per listener would be something I would like to work on for
> a future release (like 1.2). Would that solve your use case?
>
> /niklas
>

Re: support for virtual hosts

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Sun, May 24, 2009 at 11:38 AM, Torsten Sauer
<da...@googlemail.com> wrote:
> I started to integrate the ftp server into our own application server and
> I'm searching for an option to support virtual hosts. I think here of
> virtual hosts like in a web server (e.g. apache ;))...
>
> Is there a possibility to "switch on" this feature or do you see a chance to
> integrate it?

Assuming you would like to have different hosts on different IPs/ports
(since there is nothing like the Host header in FTP)? No, we do not
support this since some of our components are global (like the user
manager). We do however have support for multiple listenerna, but the
main purpose for this is to be able to have SSL and plain listeners
for the same server. But, any configuration on the listener level is
of course possible to have separate per local IP/port.

Having better support for being able to have separate user managers
and so on, per listener would be something I would like to work on for
a future release (like 1.2). Would that solve your use case?

/niklas