[ale] iptables redirect IP

Chris Fowler cfowler at outpostsentinel.com
Wed Jan 14 18:32:04 EST 2015


----- Original Message -----

> From: "Jim Kinney" <jim.kinney at gmail.com>
> To: "Atlanta Linux Enthusiasts" <ale at ale.org>
> Sent: Wednesday, January 14, 2015 6:01:47 PM
> Subject: Re: [ale] iptables redirect IP

> If you're using a web interface, use a redirect page on A then after the
> first connect, all traffic for a client goes to B.

This could be an option. To do this I would need to use a 302 redirect. Is there a way in Apache to configure 
a virtual host and then apache would serve the 302? 

What I see is that you create a .htaccess in the root and then put 302 direction there. Apache will do the rest. 

I have a few options per this page: 

http://www.yolinux.com/TUTORIALS/ApacheRedirect.html 

The perl example would be easy for me, but I do not think it covers the whole site. 

mod_alias looks like a good example. I could create the conf file on demand and simply restart apache. 

#7 shows 301. Should I use that vs 302? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20150114/eed0a59c/attachment.html>


More information about the Ale mailing list