Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
|
 |
03-26-2011, 04:55 PM
|
#1
|
Senior Member
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
|
Folder and description appearance using Apache
I have a personal webserver and webpage that makes my mp3 collection available to me on the network. It's more of a learning experience than anything else. Anyway there are two issues that I have found some information on, but I haven't been able to make sense of what I've found.
1. I would like directories to appear first and individual files to appear afterwards.
2. I would like for the name column width to match the longest name appearing in that column.
I am attaching a screenshot of the page for clarification.
Thank you.
|
|
|
03-26-2011, 05:56 PM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
|
Hi,
You need the following:
Code:
IndexOptions FancyIndexing FoldersFirst NameWidth=*
inside the <Directory ...>...</Directory> stanza for the directory in question
Regards
|
|
|
03-26-2011, 09:10 PM
|
#3
|
Senior Member
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Original Poster
|
Quote:
Originally Posted by bathory
</Directory> stanza for the directory in question
|
Thank you for the reply. The quoted bit is still what I'm not understanding. I simply have this directory mounted inside of /foo/bar/htdocs Where does the IndexOptions bit actually go?
Last edited by damgar; 03-26-2011 at 09:18 PM.
|
|
|
03-27-2011, 04:34 AM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
|
Hi,
Quote:
I simply have this directory mounted inside of /foo/bar/htdocs Where does the IndexOptions bit actually go?
|
Let's say that this directory is /foo/bar/htdocs/mp3. In this case IndexOptions goes into <Directory /foo/bar/htdocs/mp3>...</Directory>
If /foo/bar/htdocs is your server's DocumentRoot and you want to apply the same style for all the subdirectories, then you can put it in <Directory /foo/bar/htdocs>...</Directory>
Regards
|
|
1 members found this post helpful.
|
04-16-2011, 08:36 PM
|
#5
|
Senior Member
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Original Poster
|
Thank you for the reply. It was as easy as copying your string into httpd.conf to get all the directories showing the way I wanted!
Thanks and have a great day!
|
|
|
All times are GMT -5. The time now is 05:39 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
|
|