Jump to content

Recommended Posts

Posted

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.

 

ServerName servername
Redirect permanent / http://differentservername/

Posted

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.

Posted

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:

 

[/font][font=monospace]background-image:url(http://server/icons/spacer.gif)[/font]

 

Rather than the more elegant way of doing it:

 

background-image:url(/sysicons/spacer.gif?bg=1)

 

So, the way I was thinking I should do it would be:

 

ProxyPass / http://server/
       
               ProxyPassReverse http://server/
               SetOutputFilter proxy-html
               ProxyHTMLURLMap http://server/ /
       

 

But it doesn't seem to be rewriting...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...