[ale] redirect rule for RHEL5?

Lightner, Jeff jlightner at water.com
Tue Aug 3 10:31:04 EDT 2010


Can one specify the inernal NICs IP and external NICs IP in the 2
different virtual hosts both using port 80?  I thought that was the
point in virtual hosts.   

I realize now that I misspoke below.   On the external interface I want
to get to it via the domains specified earlier.  On the internal I don't
mind getting to it via http://hostname  and http://hostname/orders.

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
James Sumners
Sent: Tuesday, August 03, 2010 10:12 AM
To: Atlanta Linux Enthusiasts - Yes! We run Linux!
Subject: Re: [ale] redirect rule for RHEL5?

I don't think a simple rewrite rule is going to work. His web server
is listening on both interfaces, but he wants requests to the external
interface to always go to "example.com/orders" when the request is
actually for "example.com/".

One way to do this would to use virtual hosts. Have "example.com" on
port 80 and "example.com/orders" on port 81. That would let you use a
firewall rule to route external traffic to the correct application
(port 81) without having to specify a different port. Only trouble is
your internal users would have to specify port 81 if they wanted to
hit the "/orders" page.

On Tue, Aug 3, 2010 at 9:53 AM, Chuck Payne <terrorpup at gmail.com> wrote:
> Do a search on Rewrite URI, that is the direct you need to go in. I
> don't have my notes with me. But take a look at that, it should be
> what you need, the other thing you could does create alias for orders
> have it pointing to the directory CubeCart stuff, to me that ould be
> easier that rewrite rule.


-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59
_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
 
Proud partner. Susan G. Komen for the Cure.
 
Please consider our environment before printing this e-mail or attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------



More information about the Ale mailing list