Re: Apache and redirecting...

John Patterson <john-/CFSSdB9WBhWk0Htik3J/[email protected]>
Newsgroups gmane.org.user-groups.jaxlug
Message-ID <CAETsGj1rVfLCMd=vu2Ot2ji4_4jyHTzSGchNOaXG6UvBmAS-ZA@mail.gmail.com>
It sounds like you might already have the vhosts set up for LAN vs. WAN if
I'm reading this correctly. If so, you can move the Redirect directive into
the vhost or directory configuration instead of httpd.conf to have in apply
only to a particular vhost or directory.

John

On Tue, Oct 11, 2011 at 2:03 PM, Paul Spicer <[email protected]>wrote:

> I have an apache server presently setup to redirect all http traffic to
> https. Problem is, I want to allow SOME http traffic through, but requests
> made to access / should route to https... I'm currently using:
>
> Redirect permanent / https://server.com/
>
> And this works well enough for accessing the site from the WAN, but it's
> preventing me from accessing phpmyadmin from the LAN... (It keeps
> redirecting me to https://server.com/ whenever I try the local IP.)
>
> I'm sure there's something to do with segregating internal traffic from
> external as to who gets redirected, but I'm not entirely sure where... Can
> anyone provide some insight?
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.