1833883 Members
1786 Online
110063 Solutions
New Discussion

Apache Config

 
SOLVED
Go to solution
Ron Cornwell
Trusted Contributor

Apache Config

I have Stronghold 3.0/ Apache 1.3.14 running on a server with multiple sites. I am trying to configure just on of the sites to redirect all traffic to the secure side. I have looked at REDIRECT PERM and it looks like it is for specific paths only and not overall. Does anyone know how to force an entire site? I have to worry about high traffic spots that may be bookmarked allowing the user to bypass the main page even if the main page is redirected. Thanks in Advance
2 REPLIES 2
Gregory Fruth
Esteemed Contributor
Solution

Re: Apache Config

syntax: Redirect permanent foo bar

The Redirect directive applies to all
pages whose URLs start with 'foo',
so Redirect ought to be able to do
what you want.

It sounds like you're using Virtual hosts,
and you want to redirect all URLs from
one of the hosts to some other URL.

Then maybe you want something like
this:


ServerName theServerInQuestion
Redirect permanent / https://someOtherServer/


This will redirect all URLs that begin with
http://theServerInQuestion to
https://someOtherServer

If this simple replacement isn't what you want,
then maybe you need to use mod_rewrite
instead of mod_alias.

HTH
Ron Cornwell
Trusted Contributor

Re: Apache Config

Thanks, I was trying that before but the spacing is wrong it the documentation.