.htaccess ne dela v /var/www

Imam še en malo večji problem.

.htaccess mi ne prepoznava v /var/www

.htaccess je

ErrorDocument 404 /err_pages/404NotFound.php
ErrorDocument 403 /err_pages/403Forbidden.php

AddDefaultCharset windows-1250
php_flag register_globals on

#AddDefaultCharset utf-8

ampak ko napisem stran ki ne obstaja ne bere datoteke 404NotFound.php ampakkar izpise

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
82.149.25.222
Sat Oct 21 11:47:52 2006
Apache/2.0.55 (Ubuntu) PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a



v user accountih .htaccess deluje.
V logih ni nič pametnega o tem problemu

error.log
[Sat Oct 21 11:47:50 2006] [error] [client 193.95.232.143] script '/var/www/kontfakt.php' not found or unable to stat
[Sat Oct 21 11:47:52 2006] [error] [client 193.95.232.143] script '/var/www/kontfakt.php' not found or unable to stat

access.log
193.95.232.143 - - [21/Oct/2006:11:47:50 +0200] "GET /kontfakt.php HTTP/1.1" 404 1070 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; sl; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7"
193.95.232.143 - - [21/Oct/2006:11:47:52 +0200] "GET /kontfakt.php HTTP/1.1" 404 1070 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; sl; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7"

rewrite.log je prazen

treba kakšno posebno nastavitev v apache2.conf?

hvala

Komentarji

  • Kami Član Ubuntu.si
    Maš za root direktorij nastavljeno AllowOverride All v httpd.conf ?
  • Lualah Član
    uredil/-a 21. October, 2006
    mislis v apache2.conf ker httpd.conf ima samo

    # This is here for backwards compatability reasons and to support
    # installing 3rd party modules directly via apxs2, rather than
    # through the /etc/apache2/mods-{available,enabled} mechanism.
    #
    #LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so


    Imam ja.

    takole je za userje kjer dela:

    AllowOverride All
    Options Indexes SymLinksIfOwnerMatch IncludesNoExec


    drugace pa je AllowOverride All se tule


    Options Indexes MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all


    in


    AllowOverride All
    Options IncludesNoExec
    AddOutputFilter Includes html
    AddHandler type-map var
    Order allow,deny
    Allow from all
    LanguagePriority en es de fr
    ForceLanguagePriority Prefer Fallback


    samo v /var/www pa stvar ne deluje

    mislim da je treba to uredit v kakem drugem fajlu in ne tu?
  • ok sem tudi to uredil.

    Ce koga zanima je za to potrebno urediti v
    /etc/apache2/sites-enabled/000-default

    sedaj izgleda ta datoteka takole

    Options FollowSymLinks Indexes MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    # Uncomment this directive is you want to see apache2's
    # default start page (in /apache2-default) when you go to /
    #RedirectMatch ^/$ /apache2-default/
Za komentiranje se prijavite ali pa se vpišite.