ssl with apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,
The easiest way to do this is through the rewrite module.
Make sure you have a line that looks like
LoadModule rewrite_module libexec/mod_rewrite.so
Then create a virtual host
<VirtualHost x.x.x.x:80> #where x.x.x.x is your ip and don't forget to turn on namevirtualhost x.x.x.x
# put any important settings like documentroot or serveradmin in here.
#Then do something like
RewriteEngine on
RewriteRule ^/cgi-bin/sqwebmail(.*)$ https://your.server.name/cgi-bin/sqwebmail$1
</virtualhost>
You put that inside a virtualhost statement so it doesn't keep trying to redirect from https to https.
Either tat or add
RewriteEngine off
to the virtualhost definition for your https server.
There are other ways of doing this but thats about the most efficient.
As for generating your key files,  there is excellent information on that at http://www.thawte.com under the ssl certificate section
in a "how to secure apache using thawte ssl certificates" document (at least there was last time I looked.
Hope that helps
Regards
Aaron
On Sun, Aug 04, 2002 at 06:39:26PM -0500, Gregory Nowak wrote:
> Hi all.
> 
> I'd also like to configure apache so that if someone goes to http://www.romuald.net.eu.org/cgi-bin/sqwebmail they will get http/1.1302, and get redirected to https://www.romuald.net.eu.org/cgi-bin/sqwebmail
> . I know that there are a few of you here that have webmail over ssl on your domains. If you could please share some hints as how to configure mod_ssl.conf, I would appreciate it.
> 
> Also, I noticed that the ssl.key directory has about 3 different key files. When I generated my ssl certificate for imap, it only generated one imapd.pem file. How do I generate my own keys for apache? Thanks in advance for any help.
> Greg
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
     +----------------------------------------------------------+
    /             |\      _,,,---,,_                           /|
   /              /,`.-'`'    -.  ;-;;,_                      / |
  /              |,4-  ) )-,_. ,\ (  `'-'                    /  |
 /             '---''(_/--'  `-'\_)                         /   |
+----------------------------------------------------------+    |
| Aaron Howell                  Kitten Internet            |    |
| aaron at kitten.net.au           Internet consultancy,      |    |
| Phone: +61-417-625550         System administration,     |    |
| fax: +61-7-36010099           system design/integration. |    |
| icq: 6715521                  http://www.kitten.net.au   |    |
|                                                          |    |
|                                                          |    +
|                                                          |   /
|                                                          |  /
|                                                          | /
|                                                          |/
+----------------------------------------------------------+







[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux