Skip to Content.
Sympa Menu

unclug - Re: [unclug] Redirect 80 ---> 443 with Apache?

unclug AT lists.ibiblio.org

Subject: UNC Linux Users Group

List archive

Chronological Thread  
  • From: "John W. Sopko Jr." <sopko AT cs.unc.edu>
  • To: UNC Linux Users Group <unclug AT lists.ibiblio.org>
  • Subject: Re: [unclug] Redirect 80 ---> 443 with Apache?
  • Date: Fri, 20 Feb 2004 11:08:32 -0500

I forgot I was using virtual hosts on this server, the server I want
to do the re-direct on will not have virutal hosts. Thanks for all
your input.

Joe Morris wrote:

On Fri, 20 Feb 2004, 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.

All you should need is the following then...

----
<VirtualHost 192.168.0.1:80>
RedirectMatch permanent .* https://newsitename$1
</VirtualHost>
----

All other environment variables will get inherited, so nothing else to
define inside of that virtual host container.

| Also if you use regular expressions you need to use "RedirectMatch"
| instead of plain "Redirect"

Right, you does need the "match" portion to match even on a wildcard
string.

_______________________________________________
Joe Morris, Web Systems Manager
Academic Technology and Networks
The University of North Carolina at Chapel Hill
_______________________________________________
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





Archive powered by MHonArc 2.6.24.

Top of Page