403 Forbidden, pedig van jog
Az a gondom, hogy az Apache egy domain belüli könyvtárra mindig 403 -at ad ki, ha nem írjuk utána, hogy index.php.
Szóval itt a domain, ezt gond nélkül behozza:
http://valami.hu/
De ha én csinálok egy alkönyvtárat ( pl.: sub_directory )és abba teszek egy index.html -t akkor nem hozza be így:
http://valami.hu/sub_directory/ ( ilyenkor 403 -as hibát ír ki )
De ha így írom be:
http://valami.hu/sub_directory/index.html
Akkor tökéletesen behozza...
Remélem értitek mi a gondom.
És itt az konfigom:
Apache 2.2.4; PHP 5.2.3 ( Zend Optimizer 3.2.8, eAccelerator [ ezt nem tudom hányas ] ); MySQL 5.0.41; Serv-U FTP Server.
Az Apache httpd.conf fájlának egy része:virtuak_hosts.conf ( a virtual.hun -t a windows hosts fájlával van megoldva. ):directory.conf:Megjegyzés: A virtual_hosts.conf és a directory.conf -ot én neveztem el ( hogy áttekinthetőbb legyen számomra a konfig ), úgyhogy senki ne keresse ezt a két fájlt. Vagyis a virtual_hosts.conf eredetileg httpd_vhosts.conf lenne, csak átneveztem.
■ Szóval itt a domain, ezt gond nélkül behozza:
http://valami.hu/
De ha én csinálok egy alkönyvtárat ( pl.: sub_directory )és abba teszek egy index.html -t akkor nem hozza be így:
http://valami.hu/sub_directory/ ( ilyenkor 403 -as hibát ír ki )
De ha így írom be:
http://valami.hu/sub_directory/index.html
Akkor tökéletesen behozza...
Remélem értitek mi a gondom.
És itt az konfigom:
Apache 2.2.4; PHP 5.2.3 ( Zend Optimizer 3.2.8, eAccelerator [ ezt nem tudom hányas ] ); MySQL 5.0.41; Serv-U FTP Server.
Az Apache httpd.conf fájlának egy része:
<IfModule dir_module>
DirectoryIndex index.php index.html welcome.html
</IfModule>
Include conf/include/virtual_hosts.conf
Include conf/include/directory.conf
<VirtualHost *:80>
ServerAdmin thomasrc##kukac##chello.hu
DocumentRoot H:/home/virtual/www
ServerName virtual.hun
ServerAlias www.virtual.hun
ErrorLog H:/home/virtual/log/error
CustomLog H:/home/virtual/log/access combined
</VirtualHost>
<Directory "/">
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Deny from all
</Directory>
<Directory "H:/home/virtual/www">
Options FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
Options Indexes?
Semmi
index.php -vel meg működik
meglehet
777
Passzolok...
Megvan hol a hiba
de ha nem saját az oldal és
Szólj a rendszergazdának
fáljt nem találja