Re: Apache and redirecting...

Tim Holloway <timh-kiPKLF+HnOy1Z/[email protected]>
Newsgroups gmane.org.user-groups.jaxlug
Message-ID <1318507539.10953.481.camel@a64>
On Tue, 2011-10-11 at 14:03 -0400, Paul Spicer 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?

Sounds like you should be able to set up a rewrite rule in front of the
one you've got now that can intercept requests to the local url (or from
the local network, whichever works best). Mark it "Final" and that will
bypass the later https rule.

  Tim


---------------------------------------------------------------------
Archive      http://marc.info/?l=jaxlug-list&r=1&w=2
RSS Feed     http://www.mail-archive.com/[email protected]/maillist.xml
Unsubscribe  [email protected]
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.