You are not logged in.

#1 2011-04-14 10:57:54

I'mGeorge
Member
Registered: 2011-03-23
Posts: 150

launch a web page from within vsftpd ftp server

I'm kinda new to all of this so I believe there's a simple solution for what I need I just don't know how it's done.

So I've configured a vsftpd, ftp server and enabled the anonymous user, therefore when I do

ftp://my_location.com

a directory like view is displayed in my web browser, corresponding to /srv/ftp where the files for the anonymous account are kept. Now I've made a little web page and I've copied it there, and can be launched running main.html so the address to access the web page would be

ftp://my_location.com/main.html

My problem is that I don't want anybody to have the possibility to see the directory like display so I'm wondering if when someone does ftp://my_location.com can't this be redirected so it will do ftp://my_location.com/main.html instead?, making the display of files and directories impossible from the ftp://my_location.com

Thanks for your time


I've first installed Arch in March

Offline

#2 2011-04-14 11:02:50

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: launch a web page from within vsftpd ftp server

The FTP protocol does not support redirection like HTTP does. It is a File Transport Protocol (hence, the name!) which is designed to give users a directory listing of files for transferring. You are trying to hammer a nail with a fork (ie, you are using the wrong tool.)

Offline

#3 2011-04-14 11:15:35

I'mGeorge
Member
Registered: 2011-03-23
Posts: 150

Re: launch a web page from within vsftpd ftp server

fukawi2 wrote:

The FTP protocol does not support redirection like HTTP does. It is a File Transport Protocol (hence, the name!) which is designed to give users a directory listing of files for transferring. You are trying to hammer a nail with a fork (ie, you are using the wrong tool.)

Okey at least now I know it's not possible.


I've first installed Arch in March

Offline

Board footer

Powered by FluxBB