Apache newb here.
Ultimate goal is use Apache as a reverse proxy (got that working) and append a particular value to a query string (can't get it working) via mod-rewrite.
The string in question is:
...to which I want to append ?Category=Furniture:
I have enabled the module:
#LoadModule reqtimeout_module modules/mod_reqtimeout.so LoadModule rewrite_module modules/mod_rewrite.so #LoadModule sed_module modules/mod_sed.so
I have attempted to enable rewrite logging in a number of places:
<Directory /> Options All AllowOverride All LogLevel debug rewrite:trace8 RewriteEngine On # Turn on the rewriting engine RewriteRule ^Dashboard$ Dashboard?Category=Furniture [NC] </Directory>
# # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel debug rewrite:trace8
...in both cases, I see no mentions of [rewrite] in error.log
Finally, here is the section of httpd.conf with the rewrite rule itself and the reverse proxy stuff:
<Directory /> Options All AllowOverride All LogLevel debug rewrite:trace8 RewriteEngine On # Turn on the rewriting engine RewriteRule ^Dashboard$ Dashboard?Category=Furniture [NC] </Directory> #####Proxy Rule ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://server8/ ProxyPassReverse / http://server8/
When I execute the string
?Category=Furniture is not being appended.
Any clue what's I'm doing wrong here? I'm at wit's end. Can't even get to the point where I can get the rewrite errors to show up in logs!
I'm on 2.4.4 on Windows x64 (Win7), btw...