Adam Cable <adam DeleteThis @nospamadsar.co.uk> wrote:
> Do you have any examples/urls for these types of applications?
This little bit of code:
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
$req=$ENV{'REQUEST_URI'};
print "<html><head>\n";
print "Now redirecting to $req.domain.com\n";
print "<meta http-equiv='refresh' content='0;url=$req.domain.com'>\n";
print "</head></html>";
get the requested URI and make up a 'redirect' directive that, if you
change the first line from text/plain to text/html will have your
browser redirected to the required domain.
Davide
--
| A triangle which has an angle of 135 degrees is called an obscene
| triangle.
|
|<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Dynamic ProxyPass