I want to redirect the request to my machine to another URL[not IP address]. Is there any way to achieve this using iptables?.. or what is the way to achieve this?..
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
closed as not a real question by Lucas Kauffman, Ward, Michael Hampton, Ladadadada, rnxrx Aug 23 '12 at 16:43
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
|
Iptables is used for ipv4 packet filtering. What you want is redirecting an url, which is part of http(rotocol). For forwarding an URL you can use a (simple) webserver, and configure it to forward request to another url. Depending on your forward requirements this can be a simple html file with
Or a complicated ruleset using Apache mod_rewrite. |
|||||
|