Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-16-2013, 02:55 PM
|
#1
|
Member
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273
Rep:
|
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.
|
|
|
06-16-2013, 04:03 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,576
|
Quote:
Originally Posted by Gil@LQ
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.
|
|
|
06-17-2013, 04:47 AM
|
#3
|
Member
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273
Original Poster
Rep:
|
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.
|
|
|
06-17-2013, 07:34 AM
|
#5
|
Member
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273
Original Poster
Rep:
|
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.
|
|
|
06-17-2013, 08:52 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,576
|
Quote:
Originally Posted by Gil@LQ
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.
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.
|
|
|
06-17-2013, 09:20 AM
|
#7
|
Member
Registered: Aug 2004
Location: Europe
Posts: 608
Rep:
|
Quote:
Originally Posted by Gil@LQ
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
|
|
|
All times are GMT -5. The time now is 06:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|