Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Is there a way to detect the URL domain name like and forward the HTTP request to some other server within the LAN

Is there a way to detect the URL domain name like and forward the HTTP request to some other server within the LAN. I need this for a customer POC , where I have to forward the request to a internal server to inject some parameters in the URL and re-post the http request.

Can this be done in a Firewall or a router or any other components in WLC. Do we need to have a custom proxy server for this ?.

please advice.


Hi, I am not sure exactly



I am not sure exactly what you are doing (re: inject parameters in URL) but there is always WCCP - which is used to cache web content locally, and fulfill requests from a local device rather than the internet.

Here is a link







New Member

Hi Mike,I am not intending to

Hi Mike,

I am not intending to do a give the cached content, My scenario is as follows :

  1. Detect the outbound request in a router or a firewall.
  2. If it is, then forward that request to a local server , say for example,
  3. This server listens at port 80 and does some processing of the request and forward the request to

So in this, I am interested in achieving point 1 & 2.   I would appreciate your help in suggesting  ways to implement this.






Hi,the issue here is you want


the issue here is you want to configure the router to classify traffic, and then policy route that traffic based on the URL matched, i.e.


class-map match-any MATCHED_URLS

match protocol http host "**"


then policy route matching traffic using




set ip next hop


apply service-policy on router's receiving interface

Where you need to be careful is on matching the URL, i.e. you want traffic that has been modified to not match this, i.e. not be policy routed, otherwise it could keep looping round.

so traffic matching url = policy routed to the server on the LAN

traffic matching url/parameter = routed based on destination ip address in header / routing table




Best wishes



New Member

Hi Mike,Thanks for the reply.

Hi Mike,

Thanks for the reply. We are now trying to implement this as you said with two different URL domains so that it will not be trapped in a loop. I will get back to you with the results soon.



New Member

Hi,A small idea, please check


A small idea, please check whether it will work or not.

You can achieve this by using combination of DNS server and reverse proxy server.( Customized apache). Make 'A' record for to reverse proxy server IP address in your DNS.

So it will resolve your reverse proxy IP address for requests.

Configure appche to accept incoming request for and points towards

I think this will solve your problem.  Only one condition is that proxy server will communicate with on behalf of client.

Follow the link for configuration of reverse proxy server