Hi,
I'm quite new to apache, but I administrate an application that uses apache to create a web based UI.
Internally the website uses the server's fully qualified machine name eg hostname1.domain1.com/webapp
I'm trying to set the application to be accessable by anyone with an internet connection, external to the company, that is move the app from the local intranet to be accessable from the internet, but still allow the old intranet address to be accessible internally.
As a result I need to be able to rewrite all the links the application produces, which are created dynamically (so I am lead to believe). I believe I need to use a combination of mod_rewrite and virtual hosts, I'm just not sure how to set this up.
What I want to do is setup a server that answers to both:
http://hostname1.domain1.com/webapp
and
http://hostname1.domain2.co.uk/webapp
and for all the urls to be rewitten on the fly to link to the domain2.co.uk address.
Can anyone suggest how I do this please?
Many Thanks
Chris