Povolenie .htaccess a mod_rewrite na localhoste

Sekcia: Konfigurácia 18.07.2008 | 15:49
Avatar Dare_devil Debian, OpenSuse  Používateľ
Dobry den. Potrebujem pomoct s povolenim .htaccess a mod_rewrite a apache na localhoste.
Nasiel som, ze na enable .htaccess mam editovat /etc/apache2/sites-available/default a zmenit
AllowOverride None
na
AllowOverride All

A do .htaccess pridal:
Order deny,allow
Allow from All
To funguje, ale potrebujem povolit este aj mod_rewrite, tak reku idem do /etc/apache2/httpd.conf, otvorim a je to prazdne.
Mate s tym niekto skusenost? Mal som to priamo z ubuntu fora, pouzivam kubuntu 8.04.
Mal som tam odkomentovat LoadModule rewrite_module modules/mod_rewrite.so a taktiez som mal urobit toto:
Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out. (I didnt find these in Fedora, yet my mod_rewrite works great)
ale tomu nerozumiem :(
Viete mi niekto pomoct? Prosim o skoru pomoc, potrebujem pracovat.
Dakujem za skore odpovede.
There is no flag large enough to cover the shame of killing innocent people
    • Re: Povolenie .htaccess a mod_rewrite na localhoste 18.07.2008 | 15:59
      Avatar Ľubor debian-based  Používateľ
      a2enmod rewrite
      • Re: Povolenie .htaccess a mod_rewrite na localhoste 18.07.2008 | 16:17
        Avatar Dare_devil Debian, OpenSuse  Používateľ
        Uz to ide, najprv som spravil to a potom som postupoval podla ineho navodu. Dakujem velmi pekne. Hodim to do databazy znalosti
        There is no flag large enough to cover the shame of killing innocent people
    • Re: Povolenie .htaccess a mod_rewrite na localhoste 18.07.2008 | 16:01
      Avatar lime Debian 3, Red Hat 6, Fedora Core 3  Používateľ
      Napr. :)

      <Directory /www_2008>
      Options Indexes
      AllowOverride All
      Allow from All
      </Directory>

      <Directory /www_2008>
      Options Indexes Includes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      Allow from all
      </Directory>
      Prejdite z modrej obrazovky k linuxu :))
      • Re: Povolenie .htaccess a mod_rewrite na localhoste 18.07.2008 | 16:17
        Avatar Dare_devil Debian, OpenSuse  Používateľ
        Bolo tam toho treba viac :)
        There is no flag large enough to cover the shame of killing innocent people