Aparajita Fishman wrote:

RewriteRule .* http://localhost:8080/%1&host=bcr.twp-xserve- dev.lanl.gov [NC,R,L,P] RewriteCond %{REQUEST_URI} ^/(oms\.acgi\$.*)$ [NC]


Here is an entry from the rewrite logfile:

(2) rewrite /acr/index.a4d -> http://localhost:8080/acr/ index.a4d&host=bcr.twp-xserve-dev.lanl.gov


You might want to change the rewrite rule to:

RewriteRule .* http://localhost:8080/%1?host=bcr.twp-xserve- dev.lanl.gov [NC,R,L,P]
                      RewriteCond %{REQUEST_URI} ^/(oms\.acgi\$.*)$  [NC]

If you look closely, you'll see the "host" query param is separated from the url in your example by "&" instead of "?", which creates an invalid url. If you want to be able to pass query params in addition to "host", you will need another rewrite rule which handles that case first.

Doh!

Thanks for the second set of eyes. That and the additional rules should fix the problem. Instead of writing all my rules at once -- there are about a dozen -- I was writing them one at a time as a learning exercise.

best,

-- Brad

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to