LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-26-2011, 04:55 PM   #1
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
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.
Attached Thumbnails
Click image for larger version

Name:	mp3.png
Views:	18
Size:	204.9 KB
ID:	6551  
 
Old 03-26-2011, 05:56 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Hi,

You need the following:
Code:
IndexOptions FancyIndexing FoldersFirst NameWidth=*
inside the <Directory ...>...</Directory> stanza for the directory in question

Regards
 
Old 03-26-2011, 09:10 PM   #3
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949

Original Poster
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by bathory View Post
</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.
 
Old 03-27-2011, 04:34 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
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.
Old 04-16-2011, 08:36 PM   #5
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949

Original Poster
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
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!
 
  


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
Redirect https apache requests to folder not in apache root bax Linux - Enterprise 4 04-12-2010 02:16 PM
Cpanel: Install Apache in different folder than: /usr/local/apache xbaez Linux - Server 0 10-05-2009 11:32 PM
Apache folder permissions anothernixconvert Mandriva 2 12-05-2005 12:55 AM
IMAP questions: file locations, directory appearance, mail appearance alake Linux - Enterprise 1 04-29-2004 05:24 PM
file description apache mjenkins Linux - General 2 04-08-2004 01:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:39 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