rewriterule rewritecond mod_rewrite log htaccess apache mod-rewrite httpd.conf apache2.4 rewritelog

apache - rewritecond - No se puede configurar el registro de reescritura



rewrite module apache2 (1)

¿Qué versión de apache?

En 2.4, las directivas RewriteLog * ya no existen, ya que el registro se ha reescrito. En este caso, debe agregar mod_rewrite.c:trace3 a su línea LogLevel donde traceX es el nivel de verbosidad (8> = X> = 1). La salida se escribirá en el registro de errores estándar de Apache ( ErrorLog ).

También podría ejecutar estos comandos: httpd -t (comprobación de sintaxis) y luego httpd -w (ejecute Apache pero mantenga abierta la consola, utilizada como stderr)

Me gustaría habilitar el registro de reescritura para depurar algunas reglas de reescritura que me están dando problemas. Así que agregué estas líneas al final de mi archivo httpd.conf :

<IfModule mod_rewrite.c> RewriteLog "/logs/rewrite.log" RewriteLogLevel 4 </IfModule>

Lo siguiente que hice fue reiniciar Apache. Sin embargo, causa un error y no se inicia. Esto es lo que obtengo en el Panel de Control de XAMPP:

13:14:56 [Apache] Error: Apache shutdown unexpectedly. 13:14:56 [Apache] This may be due to a blocked port, missing dependencies, 13:14:56 [Apache] improper privileges, a crash, or a shutdown by another method. 13:14:56 [Apache] Check the "/xampp/apache/logs/error.log" file 13:14:56 [Apache] and the Windows Event Viewer for more clues

No tengo ninguna pista en error.log aunque. De hecho, no se genera ninguna línea cuando se produce este error.

También intenté cambiar la línea RewriteLog para usar una ruta absoluta:

RewriteLog "c:/xampp/apache/logs/rewrite.log"

¿Me podría ayudar?