You could use a redirect. I had to do a similar thing for our Apache server when we changed our domain name and it works how you describe.
Code:<VirtualHost *> ServerName servername Redirect permanent / http://differentservername/ </VirtualHost>
That isn't any use to us - it is reverse proxied so the server is not internet facing.
I'm looking at ProxyHTMLURLMap at the moment, using mod_proxy_html.
I'll explain my issue further - on this site, rather than use relative urls in the CSS 'style' code, they've used full server domains - eg:
Rather than the more elegant way of doing it:
So, the way I was thinking I should do it would be:Code:background-image:url(/sysicons/spacer.gif?bg=1)
But it doesn't seem to be rewriting...Code:ProxyPass / http://server/ <Location /> ProxyPassReverse http://server/ SetOutputFilter proxy-html ProxyHTMLURLMap http://server/ / </Location>
Would this work?
Code:Redirect 301 http://servername/blah.jpg http://differentservername/blah.jpg
I got it working by changing some other settings instead.
There are currently 1 users browsing this thread. (0 members and 1 guests)