Welcome to the new Linux Foundation Forum!

Lab 8.2 - RewriteRule not working

CarloMartiniCarloMartini Posts: 16
edited January 12 in LFS211 Class Forum

I followed step-by-step (I'm on a Fedora machine) the provided solution, and after enabling the log for Rewrite Rules, it DOES seem to work, even if I'm not sure about that last message (' to get passed through to next API URI-to-filename handler'):

[Sat Jan 12 14:13:16.457004 2019] [rewrite:trace2] [pid 957:tid 140718237189888] mod_rewrite.c(482): [client ::1:46332] ::1 - - [localhost/sid#55d059c0fd20][rid#7ffb78008c00/initial] init rewrite engine with requested uri /foo/bar
[Sat Jan 12 14:13:16.457064 2019] [rewrite:trace3] [pid 957:tid 140718237189888] mod_rewrite.c(482): [client ::1:46332] ::1 - - [localhost/sid#55d059c0fd20][rid#7ffb78008c00/initial] applying pattern '^/foo/(.*)' to uri '/foo/bar'
[Sat Jan 12 14:13:16.457085 2019] [rewrite:trace2] [pid 957:tid 140718237189888] mod_rewrite.c(482): [client ::1:46332] ::1 - - [localhost/sid#55d059c0fd20][rid#7ffb78008c00/initial] rewrite '/foo/bar' -> '/scripts/foo.cgi?bar'
[Sat Jan 12 14:13:16.457098 2019] [rewrite:trace3] [pid 957:tid 140718237189888] mod_rewrite.c(482): [client ::1:46332] ::1 - - [localhost/sid#55d059c0fd20][rid#7ffb78008c00/initial] split uri=/scripts/foo.cgi?bar -> uri=/scripts/foo.cgi, args=bar
[Sat Jan 12 14:13:16.457110 2019] [rewrite:trace2] [pid 957:tid 140718237189888] mod_rewrite.c(482): [client ::1:46332] ::1 - - [localhost/sid#55d059c0fd20][rid#7ffb78008c00/initial] forcing '/scripts/foo.cgi' to get passed through to next API URI-to-filename handler

Alas, when I visit http://localhost/foo/bar, the address is still the same (I also tried with wget/curl, so it doesn't seem a browser issue)

Comments

Sign In or Register to comment.