[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SSL error
- To: http://www.outformations.com/~dek, "Craig R. Saunders" <http://www.mtrad.com/~crs>
- Subject: Re: SSL error
- From: "Craig R. Saunders" <http://www.mtrad.com/~crs>
- Date: Sun, 15 May 2005 21:29:19 -0700
- Cc: http://dummy.us.eu.org/robert, http://www.digitalspinner.com/~sean
Dale,
I've got a solution for the http/https problem.  This works on my version 
of XAMMP with these changes to httpd.conf:
<VirtualHost 127.0.0.1:80>
ServerName tplnet.localhost
DocumentRoot "/Outformations/Projects/tpl_intranet"
SetEnv c_basepath /Outformations/Projects/tpl_intranet/groupit-1.00rc7/groupit
RedirectPermanent / https://tplnet.localhost/
</VirtualHost>
<VirtualHost 127.0.0.1:443>
The crucial point is that we now have two virtualhosts, one each for the 
http and https ports.  Once we have that, we can then define each 
virtualhost to do different stuff.  To meet our simplest needs, we just 
made the http port do a permanent redirect to the https port.
Note that all VirtualHost references must be changed to still be 
effective.  Leaving them as <VirtualHost 127.0.0.1> (from our example) 
would cause problems as they would no longer match either of the defined 
VirtualHost's.  Most of them should be changed to <VirtualHost 
127.0.0.1:443> in your case.  (In mine, where I have other stuff that I 
want accessible via http, I'd change them to :80.)
I looked at modifying the files you sent me to provide a drop-in solution 
but I'm uncomfortable using them as it looks like there's a fair amount of 
troubleshooting stuff in there.  Furthermore, I didn't see a "Listen 443", 
which is how I thought we got the apache server to listen to the https 
port.  I would be more comfortable being on-site/on-line/on-hand when the 
change is made.  I am supposed to be at Outformations on Tuesday, we can do 
it then.  Or, if we need to pick a time that is more after-hours, we can 
schedule it.  (Or, if you're cool with this, you can do it.)
Let me know if you have any questions or suggestions.
Cheers,
Craig
PS - I cc'ed the other 2 gents that you included on the original email so 
they could contribute or just be informed.  :-)