Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 31st, 2012, 07:31 AM
hannaman hannaman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Posts: 2 hannaman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 39 sec
Reputation Power: 0
general - Setting Descriptions on Directories for AutoIndex

I am using an index listing via apache to stream my music and videos to a Roku device. I have a script that sets up the index directory structure and I want to use descriptions in .htaccess to sort the directories alphbetically. That way I can remove words like "the" in the description without actually renaming the directory and have it sorted correctly. I can use mod_autoindex directive of AddDescription easily enough, but that matches too broadly and I can't seem to get to match one directory without matching others.
For example, I am trying to use it sort my music by artist so I add descriptions in an .htaccess for all of the artists, like

Code:
IndexOrderDefault Ascending Description
AddDescription "Queen" "*/Queen"
AddDescription "Queensryche" "*/Queensryche"


The first statement matches Queen, Queensryche, etc and the second gets ignored since the first one partially matches the directory name. I have tried using <Directory>, <DirectoryMatch>, <Location>, and <LocationMatch> but I am apparently doing something wrong as these seem to break my .htaccess completely.

Reply With Quote
  #2  
Old January 31st, 2012, 04:03 PM
hannaman hannaman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Posts: 2 hannaman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 39 sec
Reputation Power: 0
I didn't find the answer to this question, but I scripted around the problem by moving the more restrictive match higher in the list. There were only a few that caused an issue it not that big of a deal. That made this work, but I would still be interestd to know if you can restrict AddDescription to single directory name.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > general - Setting Descriptions on Directories for AutoIndex

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap