Forum Moderators: phranque

Message Too Old, No Replies

Rewrite or ProxyPass

         

patc890

3:16 am on May 9, 2009 (gmt 0)

10+ Year Member



I have a website running under Apple's WebObjects. The URL for the site is like this.
[customer.ourcompany.com...]

I want the customer to be able to enter

www.customer.com and bring the site up and see their URL not the real one. I have tried (and it seems to work) using something like

ProxyPass / http//customer.ourcompany.com/cgi-bin/WebObjects/ourcompany.woa
ProxyPassReverse / http//customer.ourcompany.com/cgi-bin/WebObjects/ourcompany.woa

Once in the site the customer may get to URL like

[customer.ourcompany.com...]

Initially I would like to strip out the
cgi-bin/WebObjects/ourcompany.woa
part

I have tried rewrites like

RewriteRule ^/cgi-bin/WebObjects/workbench.woa(.*)$ [customer.com$1...]

Which again seems to work but when clicking on other area I get bad results.

Is there a good way to do what I want. I really find these rewrite like voodoo.

Thanks.

Pat

Caterham

1:05 pm on May 9, 2009 (gmt 0)

10+ Year Member



Use mod_proxy_html (3rd-party) or mod_substitute to modify HTML markup prior delivering the contents to the client.

patc890

1:11 pm on May 9, 2009 (gmt 0)

10+ Year Member



Hi,
Thanks for the info. I did buy mod_proxy_html a few weeks ago but the binaries I was sent didn't work. The guy who developed them sent a half dozen but none worked..said wrong arch.
I finally figured out how to compile them for MAC.

So could you give me a example of what you suggest before I try?

Thanks.

Pat