logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache2 Version Issue / Description Width Addition
Author
sullivm



Joined: 25 Apr 2007
Posts: 1

PostPosted: Wed 25 Apr '07 23:26    Post subject: Apache2 Version Issue / Description Width Addition Reply with quote

Greetings to you all, I hope things are going well. I just joined, as I have an issue with the Apache2 setup, and am unfamiliar with the system.

Ok, here's the lowdown:
we're running Windows Server 2003, using the Apache2/Xammp (?) system.

Now, not much is known about the setup, as there was no documentation involved.

I'd like to change the IndexOptions directive so that the "DescriptionWidth" can be specified with a longer length. This is so that users viewing file listings can see the full name, rather than the 23 character abbrv. name.

Now, I know that the "DescriptionWidth" portion is only useable in Apache 2.0.23+ - however I don't know how to check the version - is that easy? and if so, how do you check it?

So anyway, I tried the "DescriptionWidth" addition to the conf file, and I got a syntax error (using "*" as the value, to allow all characters, yes i know its a security issue, yadada).

Is that because the apache version isnt up to 2.0.23 - or maybe I did something wrong?

Thanks for any help . . .
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 30 Apr '07 15:32    Post subject: Reply with quote

Please see the docs!
http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexoptions.descriptionwidth

If you still have a question, please ask again.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Mon 30 Apr '07 17:08    Post subject: Reply with quote

To check your Apache version:
    Find a program in your Apache \bin directory named httpd.exe or apache.exe
    Run this program from the command prompt with the -v switch, for example:

      httpd.exe -v

It is unlikely that you have a version older than Apache 2.0.23, which is about 5 years old.

You probably mean to use NameWidth rather than DescriptionWidth if you want to see long filenames in your directory listings.

Make sure you put NameWidth=* in the IndexOptions directive, not in the Options directive.
For example:
Code:
IndexOptions FancyIndexing HTMLTable VersionSort NameWidth=*


If you have a recent (2.2+) version of Apache, the IndexOptions directive may be in a separate file - \conf\extra\httpd-autoindex.conf - instead of in httpd.conf.

-tom-
Back to top


Reply to topic   Topic: Apache2 Version Issue / Description Width Addition View previous topic :: View next topic
Post new topic   Forum Index -> Apache