Autor Zpráva
PatrikC
Profil *
Zdravim, mam apache a php na localhostu. Doted jelo vse ok, ale ted u nekterych webu kdyz zadam "localhost/web1" nebo "localhost/web/", tak se objevi chyba 400. Ale pokud tam uvedu i soubor index.php (localhost/web1/index.php), tak vse jede ok. Nevite, kde by mohla byt chyba a kam se podivat? Diky.
djlj
Profil
Asi nemáš nastaven DirectoryIndex, ale to jen tak tipuju.
pEeLL
Profil
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</IfModule>
PatrikC
Profil *
Diky za odpovedi, mam directoryindex na dvou mistech:

<Directory "C:localhost">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
AddHandler type-map var
DirectoryIndex index.php index.html index.htm index.html.var
</Directory>

a pak

DirectoryIndex index.html index.php index.php3

To by melo byt ok, ne?
pEeLL
Profil
teda ohledne apache jsem celkem lamka ale <Directory "C:localhost"> je imo blbost kdyz uz teda tak <Directory "C:/localhost"> ato za predpokladu ze bys chtel nastavit prava adresari localhost. pak bys musel mit treba DocumentRoot "C:/localhost"
PatrikC
Profil *
To lomitko mi sezral tady ten system, samozrejme, ze ho tam mam :) No je zajimave, ze s nastavenim apache jsem NIC nedelal a presto to vcera zacalo blbnout :(
Toto téma je uzamčeno. Odpověď nelze zaslat.

0