[PLUG] http -> https redirect

Keith Lofstrom keithl at kl-ic.com
Wed Jul 27 19:47:37 UTC 2005


On Wed, Jul 27, 2005 at 10:12:13AM -0700, Robert McIntosh wrote:
> Hi,
> 
> I'm trying to get apache to redirect http requests on a subdirectory,
> say http://www.mysite.com/subdir to redirect it to
> https://www.mysite.com/subdir.

-------------------------------------------

When I connect to ssh.keithl.com, it hooks me up to an ssh terminal
window.  Here's what I do in my httpd.conf : 

...

<VirtualHost *:80>
   ServerName ssh.keithl.com
   ServerAlias mail.keithl.com ssh.launchloop.com mail.launchloop.com
   Redirect / https://ssh.keithl.com/
</VirtualHost>

<VirtualHost *:443>
   ServerName ssh.keithl.com
   DocumentRoot /home/www/html/
   ...

</VirtualHost>

...

-------------------------------------------

I hope that helps.

Keith

-- 
Keith Lofstrom          keithl at keithl.com         Voice (503)-520-1993
KLIC --- Keith Lofstrom Integrated Circuits --- "Your Ideas in Silicon"
Design Contracting in Bipolar and CMOS - Analog, Digital, and Scan ICs



More information about the PLUG mailing list