.htaccess veroorzaakt 500 error

Pagina: 1
Acties:
  • 259 views

Acties:
  • 0 Henk 'm!

  • afraca
  • Registratie: April 2009
  • Laatst online: 13-08 16:46

afraca

Open Source!

Topicstarter
Ik wilde vandaag even m'n brand-new kohana-v3-based website lokaal testen (met Wampserver (niet erg tweakish, I know)), kreeg ik een 500 error voor m'n neus. Heb het in een aparte map genaamd thunderbust in m'n www folder staan. In de browser word het dus localhost/thunderbust . Ik vermoed dat m'n .htaccess m'n probleem veroorzaakt, maar ik snap even niet wat aan dit (simpele) bestand mankeert:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /thunderbust/

# Protect hidden files from being viewed
<Files .*>
    Order Deny,Allow
    Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b - [F,L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]


Ben ik nou zo achterlijk, en zie ik iets over het hoofd? Of moet ik het probleem ergens anders zoeken, in m'n kohana config bijvoorbeeld?

IMDB vote history | Next-gen OS, audio en video player, search engine en Movie DB


Acties:
  • 0 Henk 'm!

  • AtleX
  • Registratie: Maart 2003
  • Niet online

AtleX

Tyrannosaurus Lex 🦖

Kijk eens in de error.log van Wampserver?

Sole survivor of the Chicxulub asteroid impact.


Acties:
  • 0 Henk 'm!

  • gertvdijk
  • Registratie: November 2003
  • Laatst online: 09-09 10:57
En een RewriteLog aanzetten en bekijken is ook erg handig. Oftewel: wat heb je al gedaan om het probleem te debuggen?

Kia e-Niro 2021 64 kWh DynamicPlusLine. See my GitHub and my blog for articles on security and other stuff.


Acties:
  • 0 Henk 'm!

  • afraca
  • Registratie: April 2009
  • Laatst online: 13-08 16:46

afraca

Open Source!

Topicstarter
Good point, nog niet gepost:

code:
1
2
[Sat Nov 21 20:27:23 2009] [alert] [client 127.0.0.1] C:/wamp/www/thunderbust/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Nov 21 20:27:23 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/thunderbust


Ik mag mij diep, diep, diep gaan schamen. Rewrite module was niet enabled in apache.

EDIT: Hoop dat ik voor alle boze replies ben, don't worry, normaal ben ik níet achterlijk, zal wel weekend zijn....

[ Voor 10% gewijzigd door afraca op 21-11-2009 20:31 ]

IMDB vote history | Next-gen OS, audio en video player, search engine en Movie DB


Acties:
  • 0 Henk 'm!

  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 21:27

Creepy

Tactical Espionage Splatterer

Aka: altijd eerst in je logfiles kijken en debuggen. Je topic staat ook nog eens op de verkeerde plek want server installatie/configuratie hoort in Serversoftware en Windows Servers. Zie ook Waar hoort mijn topic? ;)

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney


Dit topic is gesloten.