Results 1 to 6 of 6

Thread: VS-ftpd problem for hosted virtual websites!

  1. #1
    Member honey bee's Avatar
    Join Date
    Feb 2006
    Location
    Pakistan
    Posts
    146

    Question VS-ftpd problem for hosted virtual websites!

    Hello !

    I have created ftp sites.Each of them is assigned a home directory.I have created these sitess like we create system users in vsftpd.

    To access these sites by name i have declared them in "hosts" file with one ip-address.I am using vsftpd with xinetd.Now my problem is that when i access these sites with virtual user i land on one ftp directory.No matter from which site i login, i always land on the same home directory.

    In /etc/xinetd.d i have creted separate files for each site, but when i ftp through site name only first file is read always no matter from which site name i login and then i land on the same home directory.

    Can any of you help me with this? .I am usinng vsftpd version 1.2.1.

  2. #2
    Junior Member girlygeek's Avatar
    Join Date
    Jan 2006
    Posts
    54
    You need to add a "bind" statement to each of the file that specifies the IP address on which each instance of vsFTPd will listen.

    Add this to each file:

    Code:
    bind virtual.host.ip.address
    The "man xined.conf" command will give you a further list of options that could be helpful in future.

    You can verify beforehand whenther the bind statements have worked by using the netstat command.

    Code:
    netstat -a | grep -i ftp
    This should show a list of IP addresses on which FTP is listening.
    Last edited by girlygeek; 02-27-2006 at 02:48 PM.

  3. #3

  4. #4
    Member honey bee's Avatar
    Join Date
    Feb 2006
    Location
    Pakistan
    Posts
    146

    Question

    Hello !

    Thank u for your replies ,but the examples you gave me are for different ip address against each site.I want the solution for multiple sites against one single ip i.e. multiple sites hosted on one single common ip-address.For Example:

    192.168.0.102 ftp_site1.com
    192.168.0.102 ftp_site2.com
    192.168.0.102 ftp_site3.com



  5. #5
    Administrator Associate gr8rcake's Avatar
    Join Date
    May 2004
    Posts
    44
    FTP requests refer only to the IP address, unlike HTTP which refers to a domain name. It can only be done by IP address.

    If you want this because you are doing virtual hosting for multiple customers, it would be easier to have all the virtual hosts on the server resolve to the same IP address. Then make each customer have a unique login ID, that matches the domain name, with a default login directory that matches their apache virtual hosting directory.

  6. #6
    Member honey bee's Avatar
    Join Date
    Feb 2006
    Location
    Pakistan
    Posts
    146

    Thumbs up Thanks a LOT

    Hello !

    Thanks a lot for your reply.It really solved my problem.

Similar Threads

  1. Problem with my virtual console
    By ubunfan in forum Linux - General Topics
    Replies: 3
    Last Post: 05-18-2011, 10:52 AM
  2. Virtual Private Server ( VPS ) - DNS problem
    By SaTutt in forum Linux - General Topics
    Replies: 0
    Last Post: 08-26-2009, 11:21 AM
  3. Virtual Hosts/Sites in VS-ftpd!
    By honey bee in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 02-24-2006, 02:40 AM
  4. Issues creating a VLans using virtual NICs (Virtual-hosts)
    By knight72 in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 11-19-2005, 11:37 PM
  5. GetLinuxOnline hosted Linux Games?
    By SkyNet in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 07-31-2004, 01:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •