[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MultiViews atd.



Ahoj Dalibore,

ja se pred casem naucil pouzivat tu rubriku vpravo ve vypisech adresaru
(zalezi i na poradi radku v .htaccess)
taky jsem vypatral, jak je to s tim zobrazovanim README. Musi to byt
README.html nebo README.txt, kdyz je to *.en.html a *.cz.html (nebo asi i
cs.html, ted nevim), tak to apache spravne vybere dle nastaveni
prohlizece. Jen musi byt povolena volba MultiViews, viz dole.

To zobrazovani README.html (a vlastne i HEADER.html) by bylo na astru
sikovne, zprehlednil bych tim binec v adresarich, jinak to napravit stezi
kdy dokazu

jenik



---------- Forwarded message ----------
Date: Mon, 11 Feb 2002 13:36:25 +0100 (CET)
From: Jan Hollan <jhollan@amper....muni.cz>
To: Ludek Vasta <ludek@sorry....cz>
Subject: Re: Respekt

> Hele, jak se dela v tom indexu "Description"? Mas treba u jedno clanku
> napsano, ze uz byl zverejnen az obce.cz

AddDescription "zveřejněn na obce.cz"      na_kotka
AddDescription "technický koncept"  disk_01.pdf

jako obsah souboru .htaccess. Je to prima, kdyz kazdy vidi velikosti
souboru, na rozdil od jejich rucniho vyjmenovani v rucnim index.html.


Taky mam ted nastaveno v access.conf MulitiViews, aby to zobrazilo zahlavi
a paty generovanych indexu. Musi ale ty soubory mit priponu. Dokonce to
ted spravne vybira anglicke ci ceske (*.en.html nebo *.cz.html, jak ma kdo
nastavene v prohlizeci preference)

##<Directory /var/www>
<Directory /home/httpd/html>
# # # has been set manually acc. to the old config by Jenik

# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".

# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you (or at least, not yet).

#Options Indexes FollowSymLinks
Options Indexes FollowSymLinks MultiViews
#                              MultiViews added by Jenik on Jan 31, 2002

# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options",
"FileInfo",
# "AuthConfig", and "Limit"

AllowOverride Indexes
 

a podobne pro uzivatelske adresare

<DirectoryMatch ^/home/.*/public_html>
Options Indexes SymLinksIfOwnerMatch MultiViews
AllowOverride Indexes
</DirectoryMatch>


v srm.conf mam pak

ReadmeName README
HeaderName HEADER

# IndexIgnore is a set of filenames which directory indexing should ignore
# Format: IndexIgnore name1 name2...

IndexIgnore .??* *~ *# HEADER.* README.* RCS CVS
# README* discarded by Jenik


-- on totiz novy apache uz neumi dole zobrazit README, musi to mit html
nebo txt, ac to v poznamkach srm neni uvedeno. A jeste musi byt zapnuta ta
MultiViews.