[Ubuntu-BR] Módulo rewrite - apache2
Flávio Alexandre
falexandre.reis.listas em gmail.com
Quarta Setembro 29 13:25:49 UTC 2010
Olá pessoal,
bom dia
estou testando o módulo rewrite do apache2 para que oculte minha url,
mantendo somente um valor, porém não estou tendo sucesso... se alguem puder
me esclarer onde eu possa estar errando...
segue os arquivos criados
VirtualHost
cat /etc/apache2/sites-available/lifeweb
<VirtualHost *:443>
DocumentRoot /var/www/lifeweb
ServerName *:443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/lifelspweb.crt
SSLCertificateKeyFile /etc/apache2/ssl/lifelspweb.key
ErrorLog /var/log/apache2/lifeweb-error.log
CustomLog /var/log/apache2/lifeweb-access.log common
</VirtualHost>
cat /var/www/lifeweb/.htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://192.168.217.12/$1 [R,L]
No navegador não aparece somente o ip, ele continua mostrando todo restante
Agradeço desde já...
abraços
--
--------------------------------------------------
Flávio Alexandre dos Reis
Linux user #481115
Ubuntu user #24388
Juiz de Fora - MG
More information about the ubuntu-br
mailing list