Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Bash by registered user britodfbr ( 11 years ago )
NameVirtualHost 10.100.0.25:80
<VirtualHost www.incolume.com.br:80>
 ServerAdmin [email protected]
 ServerName www.incolume.com.br
 ServerAlias www.incolume.com.br
 DocumentRoot /var/www
 <Directory />
  Options FollowSymLinks
  AllowOverride None
 </Directory>
 <Directory /var/www/>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None
  Order allow,deny
  allow from all
 </Directory>


 ErrorLog ${APACHE_LOG_DIR}/error_www.planalto.log

 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 LogLevel warn

 CustomLog ${APACHE_LOG_DIR}/access_www.planalto.log combined
 CustomLog ${APACHE_LOG_DIR}/access.log combined
 #CustomLog "|/usr/bin/logger -t apache -i -p apache.notice" combined

    <IfModule mod_rewrite.c>
     RewriteEngine On
     # use RewriteLog to debug problems with your rewrite rules
     # disable it after you found the error our your harddisk will be filled *very fast*
     # RewriteLog "/var/log/apache2/rewrite_log"
     # RewriteLogLevel 2
     RewriteRule ^/icons/ - [L]
     
        #Condições especiais de acesso
        RewriteCond %{REQUEST_URI} ^/sg/seminario/formacao/join_form$
 RewriteRule ^/sg/seminario/formacao/(.*)  http://10.100.0.82/sg_snas_preventos/$1 [L,P]
        RewriteCond %{REQUEST_URI} ^/sg/seminario/formacao/login_form$
 RewriteRule ^/sg/seminario/formacao/(.*)  http://10.100.0.82/sg_snas_preventos/$1 [L,P]
        
 #RewriteCond %{REQUEST_URI} ^/sg/cupulasocialmercosul/join_form$
 #RewriteRule ^/sg/cupulasocialmercosul/(.*)  http://10.100.0.82/sg_gab_preventos/$1 [L,P]
        #RewriteCond %{REQUEST_URI} ^/sg/cupulasocialmercosul/login_form$
 #RewriteRule ^/sg/cupulasocialmercosul/(.*)  http://10.100.0.82/sg_gab_preventos/$1 [L,P]

        # Bloqueia verbos HTTP indesejados
        RewriteCond %{REQUEST_METHOD} !=GET
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteRule . / [F,L]
        # Bloqueia autenticacoes
        RewriteCond %{HTTP:Authorization} Basic [OR]
        RewriteCond %{HTTP:Cookie} _ac
        RewriteRule . /404

        #Bloqueia todas URLs que possuem /manage
        RewriteCond %{REQUEST_URI} ^/(.*)manage$
        RewriteRule . / [F,L]

        #Bloqueia todas URLs que possuem /manage
        RewriteCond %{REQUEST_URI} ^/(.*)manage_main$
        RewriteRule . / [F,L]

        #Bloqueia todas URLs que possuem /join_form
        RewriteCond %{REQUEST_URI} ^/(.*)join_form$
        RewriteRule . / [F,L]

        #Bloqueia todas URLs que possuem /login_form
        RewriteCond %{REQUEST_URI} ^/(.*)login_form/$
        RewriteRule . / [F,L]
        RewriteCond %{REQUEST_URI} login_form(.*)$
        RewriteRule . / [F,L]

        #Bloqueia todas URLs que possuem /plone_control_panel
        RewriteCond %{REQUEST_URI} ^/(.*)plone_control_panel$
        RewriteRule . / [F,L]

 #Bloqueia todas URLs que possuem /member_search_results
        RewriteCond %{REQUEST_URI} ^/(.*)member_search_results
        RewriteRule . / [F,L]

 #Bloqueia todas URLs que possuem /prefs_users_overview
        RewriteCond %{REQUEST_URI} ^/(.*)prefs_users_overview
        RewriteRule . / [F,L]

 # rewrite any access to manage to a secure server
     #   RewriteRule ^/(.*)/manage(.*) \
     #     https://secure.example.org/zope/example_instance/example_org/$1/manage$2 [NC,R=301,L]
     #   RewriteRule ^/manage(.*) \
     #     https://secure.example.org/zope/example_instance/example_org/manage$1 [NC,R=301,L]
     
     # rewrite any other access to the zope server using a proxy [P] and add the VMH magic keywords
     # use %{SERVER_NAME} instead of example.com to avoid busting the ServerAlias
     # %{HTTP_HOST} is bad because it may contain the port
     
     #RewriteRule ^/portos(.*) http://10.100.0.82/portos/$1 [L,P]
        #RewriteRule ^/restauracao(.*) http://10.100.0.82/restauracao/$1 [L,P]
     #RewriteRule ^/intra(.*) http://intra.in.incolume.com.br/$1 [L,R=302]

 RewriteCond %{HTTP_HOST} ^www\.planalto\.gov\.br$
 #-- dominio RewriteRule ^/aviacaocivil(.*) http://10.100.0.82/aviacaocivil/$1 [L,P]
 RewriteRule ^/acessoainformacao(.*)   http://10.100.0.82/sa_acessoainformacao/$1 [L,P]
 RewriteRule ^/brasilconectado(.*)   http://10.100.0.82/brasilconectado/$1 [L,P]
 RewriteRule ^/cep-reunioes(.*)    http://10.100.0.82/cep-reunioes/$1 [L,P]
 RewriteRule ^/cep-eventos(.*)    http://10.100.0.82/cep-eventos/$1 [L,P]
 RewriteRule ^/centrodeestudos(.*)   http://10.100.0.82/centrodeestudos/$1 [L,P]
 RewriteRule ^/cgti(.*)     http://10.100.0.82/cgti/$1 [L,P]
 RewriteRule ^/coloquiofederativo(.*)   http://10.100.0.82/coloquiofederativo/$1 [L,P]
 RewriteRule ^/consea/conferencia$   /consea/conferencia/ [L,R=301]
 RewriteRule ^/consea/conferencia/(.*)   http://10.100.0.82/consea/conferencia/$1 [L,P]
 RewriteRule ^/consea/en$    /consea/en/ [L,R=302]
 RewriteRule ^/consea/en/(.*)    http://10.100.0.82/consea/en/$1 [L,P]
 RewriteRule ^/consea/pec-alimentacao$  /consea/pec-alimentacao/ [L,R=301]
 RewriteRule ^/consea/pec-alimentacao/(.*)  http://10.100.0.82/consea/pec-alimentacao/$1 [L,P]
 RewriteRule ^/consea(.*)    http://10.100.0.82/consea/$1 [L,P]
 RewriteRule ^/diadobibliotecario(.*)   http://10.100.0.82/diadobibliotecario/$1 [L,P]
 RewriteRule ^/dirti/eventos(.*)   http://10.100.0.82/dirti_eventos/$1 [L,P]
 RewriteRule ^/palestraplone4(.*)   http://10.100.0.82/palestraplone4/$1 [L,P]
 RewriteRule ^/gestaodepessoas(.*)   http://10.100.0.82/gestaodepessoas/$1 [L,P]
 RewriteRule ^/gestaoambiental(.*)   http://10.100.0.82/gestaoambiental/$1 [L,P]
 RewriteRule ^/informacoespresidenciais(.*)  http://10.100.0.82/informacoespresidenciais/$1 [L,P]
 RewriteRule ^/lai(.*)     http://10.100.0.82/lai/$1 [L,P]
 RewriteRule ^/legislacao(.*)    http://10.100.0.82/legislacao/$1 [L,P]
 #RewriteRule ^/palestralideranca(.*)   http://10.100.0.82/palestralideranca/$1 [L,P]
 #--https-- RewriteRule ^/oficina-de-valores(.*) http://10.100.0.82/oficina-de-valores/$1 [L,P]
 #RewriteRule ^/dirtisic(.*)    http://10.100.0.82/dirtisic/$1 [L,P]
 #RewriteRule ^/escolasirmas/Vencontro(.*)  http://10.100.0.82/escolasirmas/Vencontro/$1 [L,P]
 #RewriteRule ^/escolasirmas(.*)   http://10.100.0.82/escolasirmas/$1 [L,P]
 #--https-- RewriteRule ^/siceventos(.*)  http://10.100.0.82/siceventos/$1 [L,P]
 ##RewriteRule ^/sipron(.*)    http://10.100.0.82/sipron/$1 [L,P]
 RewriteRule ^/qualidadedevida$    /qualidadedevida/ [L,R=302]
 RewriteRule ^/qualidadedevida(.*)   http://10.100.0.82/qualidadedevida/$1 [L,P]
# RewriteRule ^/redesaei$    /redesaei/ [L,R=301]
# RewriteRule ^/redesaei/(.*)    http://10.100.0.82/redesaei/$1 [L,P]
 RewriteRule ^/restauracao(.*)    http://10.100.0.82/restauracao/$1 [L,P]
 RewriteRule ^/saf-projetos(.*)    http://10.100.0.82/saf-projetos/$1 [L,P]
 RewriteRule ^/saf-fccr/fccr-mercosul(.*)  http://10.100.0.82/saf-fccr/fccr-mercosul/$1 [L,P]
 RewriteRule ^/saf_fccr/fccr-mercosul(.*)  /saf-fccr/fccr-mercosul/$1 [L,R=302]
 #RewriteRule ^/fccr-mercosul(.*)   http://10.100.0.82/fccr-mercosul/$1 [L,P]
 RewriteRule ^/seminarioprocessolegislativo(.*)  http://10.100.0.82/seminarioprocessolegislativo/$1 [L,P]
 #--https-- RewriteRule ^/sg/seminario/formacao/(.*)  http://10.100.0.82/sg_snas_preventos/$1 [L,P]
 # RewriteRule ^/mercosul(.*)    http://10.100.0.82/mercosul/$1 [L,P]
 ###RewriteRule ^/cooperacaofederativa(.*)  http://10.100.0.82/cooperacaofederativa/$1 [L,P]
 #--https-- RewriteRule ^/revistajuridica(.*)  http://10.100.0.82/revistajuridica/$1 [L,P]
 ###RewriteRule ^/projetoergonomia(.*)   http://10.100.0.82/projetoergonomia/$1 [L,P]
 RewriteRule ^/spmulheres/forum(.*)   http://10.100.0.82/spmulheres/forum/$1 [L,P]
 RewriteRule ^/spmulheres/eleicoes-cndm(.*)  http://10.100.0.82/spmulheres/eleicoes-cndm/$1 [L,P]
 RewriteRule ^/spmulheres/mulheres-em-pauta(.*)  http://10.100.0.82/spmulheres/mulheres-em-pauta/$1 [L,P]
 ##RewriteRule ^/observatoriodegenero(.*)  http://10.100.0.82/observatoriodegenero/$1 [L,P]
 ##RewriteRule ^/portos(.*)    http://10.100.0.82/portos/$1 [L,P]

    </IfModule>

## redirect para https e outros casos
 RewriteCond %{HTTP_HOST} ^www\.planalto\.gov\.br$
# RedirectMatch /sicgov(.*)   https://www.incolume.com.br/siceventos/$1
# RedirectMatch  /siceventos(.*)   https://www.incolume.com.br/siceventos/$1
 RedirectMatch  /revistajuridica(.*)   https://www.incolume.com.br/revistajuridica/$1 
 RedirectMatch  /sg/seminario/formacao(.*) https://www.incolume.com.br/sg/seminario/formacao/$1 
 RedirectMatch  /sg/cupulasocialmercosul(.*)  https://www.incolume.com.br/sg/cupulasocialmercosul/$1
 RedirectMatch /seppir_eleicoes(.*)  https://www.incolume.com.br/seppir_eleicoes/$1
# RedirectMatch  /oficina-de-valores(.*)  https://www.incolume.com.br/oficina-de-valores/$1
 RedirectMatch  ^/$     http://www.presidencia.gov.br
 RedirectMatch /mercosul(.*)   http://www.incolume.com.br/saf-fccr/fccr-mercosul/$1
 
#RedirectMatch  /revistajuridica(.*)   https://%{SERVER_NAME}/revistajuridica/$1 

## redirect para dominio
 #XXX Redirect permanent ^/consea/conferencia$ http://www.incolume.com.br/consea/conferencia/
 RewriteRule ^/aviacaocivil(.*) http://www.aviacaocivil.gov.br/$1 [R]
</VirtualHost>

 

Revise this Paste

Your Name: Code Language: