Gentoo Archives: gentoo-user-br

From: Gessy <gessycaetano@×××××.com>
To: gentoo-user-br@g.o
Subject: [gentoo-user-br] Mod Rewrite Apache 2
Date: Tue, 02 May 2006 12:57:54
Message-Id: deb8f1cb0605020557p559e46caxe91a09c71f26a650@mail.gmail.com
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

Replies

Subject Author
Re: [gentoo-user-br] Mod Rewrite Apache 2 Alexandre Marcolino <alexandre.marcolino@×××××××.br>