WWW.GENTOO-SRBIJA.ORG
USE=freedom -software_patents emerge --deep --update world Četvrtak, 20 Novembar/2008  
 » SADRŽAJ
 › Uvod
 › Performanse
 › Mirori
 › Linkovi
 › Download
 › Mailing lista
 › Kontakt
 » PROFIL
» šifra
zapamti me
  Registracija
 » PRETRAGA
 » NOVI PAKETI
gnome-extra/lock-keys-applet-1.0: An applet that shows the status of your Caps, Num and Scroll Lock keys
dev-python/gtkmozembed-python-2.19.1-r10: Based on the libtool eclass
app-text/evince-2.24.1: Simple document viewer for GNOME
media-gfx/fontforge-20080927: postscript font editor and converter
dev-dotnet/glade-sharp-9999: Dummy ebuild to understand the package move to gtk-sharp[glade]
dev-dotnet/gtk-sharp-2.12.6: Gtk# is a C# language binding for the GTK2 toolkit and GNOME libraries
app-office/glabels-2.2.3: Program for creating labels and business cards
x11-base/xorg-server-1.5.2: X.Org X servers
dev-lang/mono-basic-1.2.4: Visual Basic .NET Runtime and Class Libraries
dev-dotnet/taglib-sharp-2.0.3.0: Taglib# 2.0 - Managed tag reader/writer
 » WEBMAIL
 » GENTOO-PORTAGE
And we're back
Forum index ›› Mreže i bezbednost › DirectoryIndex feat .htaccess [Sredjeno]  
  AUTOR   PORUKA

Član
Učlanjen: 13 Apr 05
Lokacija: Užice
Poruke: 120
profil¬ poruka¬
 Oglašeno: 09 Apr 06  23:30   Izmenio: Petar

Da li neko zna kako da nateram apache da čita .htaccess, treba mi DirectoryIndex na tamo neki file. Trenutno u httpd.conf imam ovo :

# 
# DirectoryIndex: sets the file that Apache will serve if a directory 
# is requested. 
# 
# The index.html.var file (a type-map) is used to deliver content- 
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower. 
# 
DirectoryIndex index.html index.html.var 
 
# 
# AccessFileName: The name of the file to look for in each directory 
# for additional configuration directives.  See also the AllowOverride 
# directive. 
# 
AccessFileName .htaccess 
 
# 
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
# 
<Files ~ "^\.ht"> 
Order allow,deny 
Deny from all 
</Files> 




U .htaccess stoji

DirectoryIndex tamo_neki_fajl.html




Medjutim server i dalje gadja sa mod_autoindex. Mesto tog ( .htaccess ) fajla dobijam Directory Listing..

anyone?

Drugo pitanje , npr imam index.html koji u headeru ima neke opise, šta god .... heh shit ovo ću teško da objasnim :> Treba mi html koji ce izbaciti na dnu par fajlova za download a u vrhu njihove opise ( mod_autoindex ). Hteo bih da izbegnem php, CGI, suexec i to da uradim samo sa FancyIndexing ( mod_autoindex)

huh
http://img117.imageshack.us/img117/8571/screenshot8cx.jpg

pz
edit: ubija me minibb


Član
Učlanjen: 07 Jul 05
Lokacija: 127.0.0.1
Poruke: 200
profil¬ poruka¬
upRE: DirectoryIndex feat .htaccess [Sredjeno]  Oglašeno: 10 Apr 06  02:21  

Imas fajl
/etc/apache2/vhosts.d/00_default_vhost.conf
i tamo gde definises stvari za
<Directory "/var/www/localhost/htdocs"> (pod uslovom da koristis tu lokaciju, a ne neku drugu, naravno)
videces jedan 'AllowOverrde None'. To 'None' promeni u 'All', ili sta tebi vec treba (fileinfo, limit, itd.)


Član
Učlanjen: 13 Apr 05
Lokacija: Užice
Poruke: 120
profil¬ poruka¬
upRE: DirectoryIndex feat .htaccess [Sredjeno]  Oglašeno: 10 Apr 06  11:35  

Hvala lyb!


Petar napisao:
Drugo pitanje , npr imam index.html koji u headeru ima neke opise, šta god .... heh shit ovo ću teško da objasnim :> Treba mi html koji ce izbaciti na dnu par fajlova za download a u vrhu njihove opise ( mod_autoindex ). Hteo bih da izbegnem php, CGI, suexec i to da uradim samo sa FancyIndexing ( mod_autoindex)

[..]
Options Indexes 
IndexOptions FancyIndexing +IgnoreCase +SuppressDescription NameWidth= 
* +SuppressHTMLPreamble 
HeaderName fajl.html


Sredjeno :-)


Član
Učlanjen: 07 Jul 05
Lokacija: 127.0.0.1
Poruke: 200
profil¬ poruka¬
upRE: DirectoryIndex feat .htaccess [Sredjeno]  Oglašeno: 10 Apr 06  15:55  

E super :) Inace nisam se zezao sa time, ali koliko vidim u httpd.conf dovoljno je da u direktorijum sa fajlovima stavis fajl HEADER.html da bi se pojavio pre liste fajlova i fajl README.html da bi se pojavio na kraju, iza direcory listinga.

Update: Sada sam probao i to radi :)