[unclug] Redirect 80 ---> 443 with Apache?
John W. Sopko Jr.
sopko at cs.unc.edu
Fri Feb 20 10:45:01 EST 2004
I here ya, I have had problems also. Ironic, apache 2.x was supposed to
simplify this issue:
From the Apache 2.0 New Features doc:
http://httpd.apache.org/docs-2.0/new_features_2_0.html
New Apache API
The API for modules has changed significantly for 2.0. Many of the
module-ordering/-priority problems from 1.3 should be gone. 2.0 does
much of this automatically, and module ordering is now done per-hook to
allow more flexibility. Also, new calls have been added that provide
additional module capabilities without patching the core Apache server.
Brian Payst wrote:
> I've had issues in the past with Apache where the order in which I was
> loading modules caused different behaviors. This was with 1.3.x, and
> with mod_dav, but maybe try changing the module loading sequence?
>
> John W. Sopko Jr. wrote:
>
>> I tried this at first, a re-direct causes a loop, you come in on port
>> 80, see the redirect, come in on port 443, see the Redirect, come in
>> on port 443 see the Redirect....Can probably get to work with virtual
>> servers. I just wanted a simple way when going to port 80 to go to
>> port 443 like Jeff did. I think there is some issue in apaceh 2.x.
>>
>> Also if you use regular expressions you need to use "RedirectMatch"
>> instead of plain "Redirect"
>>
>> John Reuning wrote:
>>
>>> The main thing that rewriting offers over redirecting is the transparent
>>> translation of urls from http to https, right? Can the Redirect
>>> directive take patters and insert them via $1, $2, etc?
>>>
>>> Thanks,
>>>
>>> -jrr
>>>
>>>
>>>> | RewriteRule ^/(.*) http://yahoo.com [L,R,NC]
>>>
>>>
>>>
>>>
>>>> Redirect permanent .* https://newlocation.com
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> unclug mailing list
>>> unclug at lists.ibiblio.org
>>> http://lists.ibiblio.org/mailman/listinfo/unclug
>>
>>
>>
>
--
John W. Sopko Jr. University of North Carolina
email: sopko AT cs.unc.edu Computer Science Dept., CB 3175
Phone: 919-962-1844 Sitterson Hall; Room 044
Fax: 919-962-1799 Chapel Hill, NC 27599-3175
More information about the unclug
mailing list