Re: [users@httpd] Rewrite problem solved

2014-02-18 Thread Eggert Ehmke
In the end I managed to solve the problem only with rewrite rules. The solution might not be perfect, but it works. # send back requests from the old server RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} ^http://123.123.123.123:8080/site/ [NC] RewriteRule ^/(.

Re: [users@httpd] Rewrite problem

2014-02-18 Thread Eggert Ehmke
Hello, I tried this approach: ProxyPass /oldserver/ http://123.123.123.123:8080/site/ ProxyPassReverse /oldserver/ http://123.123.123.123:8080/site/ # rewrite for zope RewriteCond %{REQUEST_URI} !^/oldserver/ RewriteRule ^/(.*) (rewrite for local zope server)

Re: [users@httpd] Rewrite problem

2014-02-18 Thread Vincenzo D'Amore
Hi, I'm not sure I got your problem, but you could try to modify the HTML before return it to the user. There are at least a couple of module able to do it. I suggest take a look at mod substitute or maybe mod proxy HTML. Ciao, Vincenzo -- mobile: 3498513251 skype: free.dev > On 18/feb/2014,

Re: [users@httpd] Rewrite problem

2014-02-17 Thread Yehuda Katz
Your best bet might be to do your own reverse proxy to the old server which will allow HTTPD to rewrite the links for you. Rewrite rules are not appropriate for this situation. Look at ProxyPass and ProxyPassReverse. - Y On Mon, Feb 17, 2014 at 7:05 PM, Eggert Ehmke wrote: > I took over a doma

[users@httpd] Rewrite problem

2014-02-17 Thread Eggert Ehmke
I took over a domain that was previosly hosted on anther server. The new web portal works fine. We still need to access the old portal, which is accessible via a nonstandard port like http://oldserver:8080. However, the old web portal contains internal absolute links, which now of course point t

Re: [users@httpd] rewrite problem

2012-02-27 Thread Eric Covener
On Mon, Feb 27, 2012 at 1:00 AM, Julie Xu wrote: > Hi > > I want do rewrite on file proxy.pac. that means if a client use IE  from > 10.1.1.0/24 to query proxy.pac, will get proxy1.pac, and other get > proxy.pac. > > I have did: > > >     RewriteEngine On >     RewriteCond %{REMOTE_ADDR}

[users@httpd] rewrite problem

2012-02-26 Thread Julie Xu
Hi I want do rewrite on file proxy.pac. that means if a client use IE from 10.1.1.0/24 to query proxy.pac, will get proxy1.pac, and other get proxy.pac. I have did: RewriteEngine On RewriteCond %{REMOTE_ADDR} ^10\.1\.1\. RewriteRule ^proxy.pac$ proxy1.pac and re