Hello, I'm using Apache on Windows with the XAMPP bundle, and I'm having a problem nobody seems to know why (I didn't get any answer in the official XAMPP forum).
What I need is to enable the rewrite log
in order to debug some rewrite rules that are not working as expected. So this is what I did at the end of
file, making sure the module is being loaded:
I was said to use <IfModule rewrite_module>
instead because the other one was incorrect, and I even tried without the IfModule tags. When I restart Apache with these directives, it doesn't start and I get this error message in the XAMPP control panel:
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
I don't get any clue when looking in error.log
. In fact no error line is generated when this occurs. I also tried removing RewriteEngine On, with an absolute path:
Seems like my Apache configuration doesn't admit this directive. Your help would be really appreciated.