1 |
Oi pessoal, |
2 |
|
3 |
|
4 |
Etou tentando utilizar o mod_rewrite do apache para redirecionar todas |
5 |
as chamadas ao apache na port 80 (http) para a porta 443 (https). |
6 |
Bem, eu coloquei a seguinte comfiguração no http.conf |
7 |
|
8 |
RewriteEngine On |
9 |
RewriteLogLevel 3 |
10 |
RewriteLog "/var/log/apache2/rewrite.log" |
11 |
|
12 |
RewriteCond %{HTTPS} !=on |
13 |
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [P,L] |
14 |
|
15 |
Estou usando o apache-2.0.55-r1 , gentoo-sources-2.6.15-r1. |
16 |
|
17 |
Valeu. |
18 |
|
19 |
-- |
20 |
+-------------------------------------------------------------------+ |
21 |
(o< Larry the Cow was a bit frustrated at the |
22 |
//\ current state of Linux distributions... |
23 |
V_/_ ... until he tried Gentoo Linux |
24 |
www.gentoo.org |
25 |
+-------------------------------------------------------------------+ |
26 |
|
27 |
-- |
28 |
gentoo-user-br@g.o mailing list |