Apache Server configuration support - Port Redirection for specific file request

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > March 2005 > Port Redirection for specific file request





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Port Redirection for specific file request
ANDREW LANDEG

2005-03-18, 8:48 pm

Hi All,
This may seem a bit of a non standard thing to do, but I need to
redirect incoming requests for just specific file (something.xml - updated
regularly) onto a different port, xxxx which would be served by separate
server software, does anybody know if there is a way to redirect this
request and make apache transparent to requests for this file? Apache seems
to be quite nice to configure for Virtual hosts, but I could not find any
way of redirecting requests for specific files.

I am constricted by the following :
* We needed some non standard HTTP headers in our XML feed for
compliance with an experimental client, so I developed some server software
myself to handle these - works well [or perhaps somebody knows of some way
to get Apache to do this for us - we have a *little* php knowledge]
* We are already serving standard HTTP via Apache from the same
gateway (the only one available for our web link) which only allows routing
to one machine per port - which makes pretty good sense!
* I could not develop a server (yet) clever enough to intercept
requests on port 80, then send unsuitable requests to, and coexist with
Apache on the same port (again - makes good sense!)
* Client developer who used to be a friend has a bug up his butt
about using anything other than port 80 for the XML file.

The only method I can see as being trivial is to register a new domain to
our fixed IP and virtual host that banner - unless somebody knows of an
easier method.

Many thanks to anybody who read this,
Even more thanks to anybody who can offer some advice!

Andy

[Embedded C developer with no Server Exp - in WAY over his head ]


Davide Bianchi

2005-03-19, 2:48 am

On 2005-03-19, ANDREW LANDEG <andy.landeg_noSpam_@blueyonder.co.uk> wrote:
> redirect incoming requests for just specific file (something.xml - updated
> regularly) onto a different port, xxxx which would be served by separate
> server software, does anybody know if there is a way to redirect this
> request and make apache transparent to requests for this file?



Tried with:

<Location "/wathever/yourfile.xml">
Redirect .....
</Location>

Davide

--
[It] contains "vegetable stabilizer" which sounds ominous. How unstable
are vegetables? --Jeff Zahn
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com