LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-16-2013, 02:55 PM   #1
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Rep: Reputation: 1
customise ftp / http directory list index page, colorful index page


i have ftp server and apache shares, users can donwload files from ftp and apache via browsers like

when users type above url, all the files / folders listed nomally in a white webpate.

i just want to modiry it like changing color of the page, list of items in a table or anything else which make very professonal and color ful good looking.

i googled a little and came to know we can keep a index.php page in the ftp directory so that it will be customized, but not much knowledge.

Please help me

thank you very much in advance.
 
Old 06-16-2013, 04:03 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,576

Rep: Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134
Quote:
Originally Posted by Gil@LQ View Post
i have ftp server and apache shares, users can donwload files from ftp and apache via browsers like

when users type above url, all the files / folders listed nomally in a white webpate. i just want to modiry it like changing color of the page, list of items in a table or anything else which make very professonal and color ful good looking.

i googled a little and came to know we can keep a index.php page in the ftp directory so that it will be customized, but not much knowledge.
Can you post some of the links you came up with?? Because there are LOTS of ways to do what you'd like, depending on your needs. Writing a simple PHP page to loop through a list of files in a directory and color-code them isn't too hard.

We'll be glad to help you with it...so post what you've written/done so far, or what you're having trouble with, and we can help.
 
Old 06-17-2013, 04:47 AM   #3
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
Hi ,

http://pdirl.newroots.de/

this is the link worked for me,old ones waste of time, one more link is

http://www.evoluted.net/thinktank/we...listing-script

this has feature of showing priview of image files on mouse hover but when i tried it, it showing liks normal letters only. i do have php.on my server which is why above link worked.but why second link does't work.

Now problem is first link working for http share, but not ftp. is there any modifications to work the first link in for ftp share.

also found http://sourceforge.net/projects/dir-list/

but none of them work for ftp

thank you very much.

Last edited by Gil@LQ; 06-17-2013 at 05:12 AM.
 
Old 06-17-2013, 06:16 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Yes, you can, even without resorting to server-side scripting! Have a look at apache wiki and HeaderName, ReadmeName, IndexOptions, IndexStylesheet config options for apache.
 
Old 06-17-2013, 07:34 AM   #5
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
Hi,

no issue with http dir listing, i want to do it for ftp server. Please help me how to do it for ftp server directory listing. Directory listing is working for apache after following first link. i want for ftp.

thank you very much.
 
Old 06-17-2013, 08:52 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,576

Rep: Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134Reputation: 8134
Quote:
Originally Posted by Gil@LQ View Post
Hi ,
this is the link worked for me,old ones waste of time, one more link is this has feature of showing priview of image files on mouse hover but when i tried it, it showing liks normal letters only. i do have php.on my server which is why above link worked.but why second link does't work.

Now problem is first link working for http share, but not ftp. is there any modifications to work the first link in for ftp share.
Yes, I'm sure there ARE modifications that YOU can do to make it work the way you want it to. So, go ahead and make the changes, and post back (probably in the programming forums), if you get stuck, and be sure to post your code.
Quote:
also found http://sourceforge.net/projects/dir-list/ but none of them work for ftp
Really?? From the dir-list webpage that you linked to:
Quote:
Originally Posted by dir-list webpage
Description

dirLIST displays files and folders in a given HTTP/FTP directory.
...which says that dir-list DOES support FTP. Did you configure it correctly to do so?

EDIT: After spending five minutes on it, the dir-list program works very well with FTP...providing you read the documentation and configure it to USE FTP.

Last edited by TB0ne; 06-17-2013 at 10:21 AM.
 
Old 06-17-2013, 09:20 AM   #7
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Quote:
Originally Posted by Gil@LQ View Post
no issue with http dir listing, i want to do it for ftp server. Please help me how to do it for ftp server directory listing. Directory listing is working for apache after following first link. i want for ftp
Sorry, that's not going to work. When someone types a ftp:// url for a directory into a browser, the browser goes and does a directory listing using ftp protocol, gets the list of files from the server (using ftp protocol) and displays it to the user.

The display page remotely resembles something that apache mod_autoindex module creates. But apache mod_autoindex works very differently.

When someone types a http:// url for a directory into a browser, the browser sends a HTTP GET request for that url to the server. The server handles this request to mod_autoindex module and this module formats a html document that is sent to the browser and it is rendered for the user.

So, with HTTP you can change the appearance of the user interface on the server side, because it is generated on the server side. But for FTP you cannot change it on the server side because it is generated on the browser side.

HTH,
Robert
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Squirrelmail doesn't load index page Rocktron Linux - Software 4 01-22-2010 11:04 AM
wordpress index page is not working as before ilnli General 6 03-28-2007 02:45 PM
search box on first index page macewan LQ Suggestions & Feedback 7 09-30-2006 01:39 AM
Apache2 no index.html page babelbrennt Debian 1 11-10-2005 07:35 AM
index.asp as default page daveuk Linux - Software 2 09-13-2002 01:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration