Mazhar Malik wrote:
Hi,

We are in the process of evaluating Active4D for one of our projects. One of the questions we have is regarding proxy rewrite. Searching list archive gives me ways to proxy/rewrite from Apache or 4DWebSTAR to 4D/Active4D, but I couldn't find other way around. i.e from 4D/Active4D to Apache or 4DWebSTAR. So my first question is that is it possible to proxy/rewrite URL in a way that when endusers send requests to Active 4D, the actual response comes from Apache and the URL is hidden from enduses?

Thanks in advance.

mazhar

Mazhar,

If you send the request to Apache and have it proxy to Active4D, depending on how your rewrite rules are written the user may never know that Active4D was involved.

When you say 'URL is hidden from enduses', I assume you don't want to reveal details like "index.a4d?action=view&type=products&id=1234"? Instead the user would use a URL like:

   www.myapacheserver.com/view/products/1234

that would seemlessly display the content at www.myapacheserver.com:8080/index.a4d?action=view&type=products&id=1234

Apache's rewrite module (and WebSTAR's too) can do this for you. The messages you found in the list archive should provide some hints on how to do that.

Or am I misunderstanding what you want to do? Since 4D/Active4D doesn't have a proxy module you can't go the other way. You can use Active4D to redirect to another Apache server where if you were to access www.mya4dserver.com/index.a4d?action=view&type=products&id=1234

You could have Active4D redirect to

   www.myapacheserver.com/view/products/1234

but that doesn't hide the implementation details from the end user.

-- 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