pra não esquecer…

maio 13th, 2015

configurando proxy reverso apache – passando header

Posted by Felipe Olivaes in Apache

<VirtualHost *:80>
    ServerName servidor.dominio.com.br
    ServerAlias servidor.dominio.net
    ServerAdmin servidor@servidor.dominio.com.br

    # configurando header IP
    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} ^(.*)
    RewriteRule ^.* - [env=MY_REMOTE_ADDR:%1]
    RequestHeader set X-Kinghost-Ip "%{MY_REMOTE_ADDR}e"

    # configurando proxy reverso
    ProxyPreserveHost On
    ProxyPass        / http://10.99.99.100:80/
    ProxyPassReverse / http://10.99.99.100:80/

    # libera utilização de proxy
    <Proxy *>
        Order deny,allow
        allow from all
    </Proxy>
</VirtualHost>

junho 5th, 2012

rewritecond negação

Posted by Felipe Olivaes in Apache

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/mimimi
RewriteRule (.*) http://www.google.com.br/favicon.ico [L,R=301]

julho 30th, 2009

redirecionamento através do subdomínio por rewrite

Posted by Felipe Olivaes in Apache, Linux

Depois de colocar o vhost para responder por *.dominio

[code]
# habilita rewrite
RewriteEngine on
# se não iniciar com www ou meudominio.com.br
RewriteRule %{HTTP_HOST} !^(www.|)meudominio.com.br$
# se tiver algo no subdominio
RewriteCond %{HTTP_HOST} ^(.*)\.meudominio.com.br$
# redireciona informando o subdominio
RewriteRule (.*) arquivo.php?user=%1 [QSA]
[/code]

outubro 10th, 2008

desativando mod deflate para um domínio

Posted by Felipe Olivaes in Apache

SetEnvIfNoCase Host dominio\.com\.br$ no-gzip dont-vary

outubro 9th, 2008

mod deflate, desabilitar pela extensão

Posted by Felipe Olivaes in Apache

SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|wmv|avi|pdf|swf|zip)$ no-gzip dont-vary

agosto 27th, 2008

mod_deflate swf problem

Posted by Felipe Olivaes in Apache

probleminhas com mod_deflate + swf

coloque no htaccess:
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|pdf|swf|zip)$ no-gzip dont-vary




nuvem de tags:

24 horas acentuação Apache bash benchmark bios boot celular centos charset comando console Download esxi Firebird firefox http importação intel ipod kinghost legenda Linux lost mod_deflate msn mssql MySQL owner Padel PHP placa mãe portabilidade Postgre SQL recovery root password rewrite shell sinuca sql server svn temporada completa veronica mars vmware Windows ícones