yeahz Posted February 18, 2010 Report Share Posted February 18, 2010 Tas mod_rewrite vienmēr ir bijis ļoti niķīgs, nekad neesmu bijis draugos ar viņu. :D Lieta tāda, ka viņš vienkārši nestrādā. Ir noņemts komentārs (#) no LoadModule rewrite_module modules/mod_rewrite.so. Lai arī ko tik es neierakstītu .htaccessā, vienmēr rāda 404 Not Found, pat ja ierakstu "deny from all". Ja tas kaut ko maina, tad es izmantoju virtual hosts (kurš vismaz strādā). Ceru uz atsaucību, kā tikt ar šo galā. Quote Link to comment Share on other sites More sharing options...
waplet Posted February 18, 2010 Report Share Posted February 18, 2010 restartēji apachi? Quote Link to comment Share on other sites More sharing options...
yeahz Posted February 18, 2010 Author Report Share Posted February 18, 2010 (edited) jā, un arī pat pc norestartēju. :D Edited February 18, 2010 by yeahz Quote Link to comment Share on other sites More sharing options...
101111 Posted February 18, 2010 Report Share Posted February 18, 2010 Parādi sava virtual host konfigurāciju Quote Link to comment Share on other sites More sharing options...
2easy Posted February 18, 2010 Report Share Posted February 18, 2010 paskaties iekš httpd.conf vai ir Options FollowSymLinks AllowOverride FileInfo Quote Link to comment Share on other sites More sharing options...
yeahz Posted February 19, 2010 Author Report Share Posted February 19, 2010 Vaina ir kaut kur virtual hostos. Zem http://localhost/ htaccess strādā, bet zem kāda cita vistuālā hosta nestrādā, piemēram zem http://auto/ . Konfigurācija: httpd.conf # Virtual hosts Include conf/extra/httpd-vhosts.conf httpd-vhosts.conf <VirtualHost 127.0.0.1> DocumentRoot C:\AppServ\www ServerName localhost </VirtualHost> <Directory C:\web> Order Deny,Allow Allow from all </Directory> NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> DocumentRoot C:\web\auto ServerName auto </VirtualHost> un hosts 127.0.0.1 auto Quote Link to comment Share on other sites More sharing options...
101111 Posted February 19, 2010 Report Share Posted February 19, 2010 Kā jau cilvēks vienu postu ieptiekš minēja - tev pietrūkst Directory direktīvas C:\web\auto mapei. Tur jāpievieno rindiņas Options FollowSymLinks AllowOverride FileInfo Quote Link to comment Share on other sites More sharing options...
yeahz Posted February 20, 2010 Author Report Share Posted February 20, 2010 <VirtualHost 127.0.0.1> DocumentRoot C:\web\auto ServerName auto Options FollowSymLinks AllowOverride FileInfo </VirtualHost> Uzliku šādi, bet tagad visas lokālās lapas (tai skaitā arī lacalhost) ir vienkārši baltas, neatkarīgi no tā vai tur ir htaccess vai nav. Quote Link to comment Share on other sites More sharing options...
2easy Posted February 20, 2010 Report Share Posted February 20, 2010 un apaches error logā nekā nav? Quote Link to comment Share on other sites More sharing options...
yeahz Posted February 20, 2010 Author Report Share Posted February 20, 2010 http://paste.php.lv/a82c23e4f8528bce49b810ad9f2ab1dc Quote Link to comment Share on other sites More sharing options...
2easy Posted February 20, 2010 Report Share Posted February 20, 2010 hmm, tās 2x rindiņas drīzāk attiecas uz direktoriju, nevis uz virtual host. pārliec ;) Quote Link to comment Share on other sites More sharing options...
yeahz Posted February 20, 2010 Author Report Share Posted February 20, 2010 ooo, beidzot iet, paldies :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.