Jump to content
php.lv forumi

directoryindex problēma


march

Recommended Posts

Gribēju apachem uzlikt lai sākumā atver nevis index.htm, bet index.php. Config failā visu ierakstu (pie directory index), bet restartējot serveri atveras tikai visu failu saraksts, arī index.php tur parādās, bet uzreiz neatveras. Rekur pierādījums: (failu saraksts atverot serveri un httpd.conf fails)

 

prob.jpg

 

edit: index.html un index.htm ver vaļā normāli

 

Modulis enablots ?
a kas tas par moduli ? Edited by march
Link to comment
Share on other sites

#

# 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.htm index.php

 

iznjem to moduli ... atstaaj vienu pashu ...

Link to comment
Share on other sites

Starp citu man kaut kad bija taada pati probleema, httpd.conf nokonfots, PHP enablots, uzstaadiits, nokonfots, apacis par sintaksi neko nebljaustaas, bet iepuut, neiet...

 

Es tikai vairs neatceros, palaidu uz taa kompja beigaas vai nee!

 

btw, ja kompim nav tiiklenes, apacis/PHP neiet?

Link to comment
Share on other sites

^_^

 

mājās uz servera man tai conf'aa ir

 

<IfModule mod_dir.c>

DirectoryIndex index.html

DirectoryIndex index.htm

DirectoryIndex index.php

DirectoryIndex default.htm

</IfModule>

 

 

bet skolaa kur ir izvietota majas lapa conf failaa

ir vnk

 

DirectoryIndex index.html index.htm index.php default.htm

 

viss vienaa ridinjaa ^_^

man liekas ka maajaas no saakuma bija arii viss vienaa rindinjaa

bet veelaak es vnk panjeemu gatavus conf'us no skolas ^_^ (visus)

Link to comment
Share on other sites

×
×
  • Create New...