Linux за българи: Форуми

Linux секция за начинаещи => Настройка на програми => Темата е започната от: sys7em в Mar 29, 2005, 13:13



Титла: Apachе web server
Публикувано от: sys7em в Mar 29, 2005, 13:13
Начи когато няма index файл апачето листва файловете и директориите в текущата дир ... обаче именат ми ги скъсява с многоточие .. примерно

Цитат
South Park - 113 - C..> 28-Mar-2005 17:39  15.5M  


Както виждате името го съкращава с многоточие ... (След C..>)Къде трябва да пипна, за да променя това ...

Мерси предварително


Титла: Apachе web server
Публикувано от: VladSun в Mar 29, 2005, 13:39
..............

http://httpd.apache.org/docs/mod/mod_autoindex.html#indexoptions


Титла: Apachе web server
Публикувано от: sys7em в Mar 29, 2005, 20:46
10x

точната опция е NameWidth=*


Титла: Apachе web server
Публикувано от: VladSun в Mar 29, 2005, 22:36
:) радвам се, че съм помогнал, както и че вече можеш да настройваш и още доста неща ;)


Титла: Apachе web server
Публикувано от: empty в Aug 30, 2005, 20:29
Може ли само да попитам къде точно се вписва опцията:
NameWidth=*
Аз я вписах в: httpd.conf file
Примерен код
<IfModule mod_autoindex.c>
    
    NameWidth=*
    
    #
    # FancyIndexing is whether you want fancy directory indexing or standard
    #
    IndexOptions FancyIndexing

    #
    # AddIcon* directives tell the server which icon to show for different
    # files or filename extensions.  These are only displayed for
    # FancyIndexed directories.
    #
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*

    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core

    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^

    #
    # DefaultIcon is which icon to show for files which do not have an icon
    # explicitly set.
    #
    DefaultIcon /icons/unknown.gif

    #
    # AddDescription allows you to place a short description after a file in
    # server-generated indexes.  These are only displayed for FancyIndexed
    # directories.
    # Format: AddDescription "description" filename
    #
    #AddDescription "GZIP compressed document" .gz
    #AddDescription "tar archive" .tar
    #AddDescription "GZIP compressed tar archive" .tgz

    #
    # ReadmeName is the name of the README file the server will look for by
    # default, and append to directory listings.
    #
    # HeaderName is the name of a file which should be prepended to
    # directory indexes.
    #
    ReadmeName README.html
    HeaderName HEADER.html

    #
    # IndexIgnore is a set of filenames which directory indexing should ignore
    # and not include in the listing.  Shell-style wildcarding is permitted.
    #
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

</IfModule>


И след стартиране на апачето ми излиза следната грешка:
Примерен код
Syntax error on line 672 of /etc/apache/httpd.conf:
Invalid command 'NameWidth=*', perhaps mis-spelled or defined by a module not included in the server configuration


Титла: Apachе web server
Публикувано от: sys7em в Aug 30, 2005, 21:07
Ето така трябва да изглежда ......


    IndexOptions +NameWidth=* +FoldersFirst FancyIndexing


Титла: Apachе web server
Публикувано от: empty в Aug 30, 2005, 21:15
Много се извинявам, че зададох този глупав въпрос... :)
Позачетох се малко по - сериозно и разбрах къде е проблема...

ПС
sys7am мерси за бързия отговор :)