From b66c6ef76c9ec2de9143973fe0d7dba1246d6df9 Mon Sep 17 00:00:00 2001 From: Lucas Kanashiro Date: Wed, 5 Nov 2014 16:32:35 -0200 Subject: [PATCH] Took some notes to test strategy --- test_notes.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+), 0 deletions(-) create mode 100644 test_notes.txt diff --git a/test_notes.txt b/test_notes.txt new file mode 100644 index 0000000..006f0d0 --- /dev/null +++ b/test_notes.txt @@ -0,0 +1,27 @@ +Configurando apache para setar header Remote-User: + +1 - Instalar apache2 +2 - Criar arquivo de configuração (ex: proxy.conf) em /etc/apache2/sites-available + + + + ProxyPass / http://localhost:9292/ + + RequestHeader set Remote-User "terceiro" + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + + +3 - Habilitar site criado (a2ensite ) +4 - Habilitar módulos (proxy, proxy-http, headers) utilizando o comando a2enmod +5 - Startar apache2 (service apache2 start) + +Referência: +http://stackoverflow.com/questions/567814/apache2-reverse-proxy-to-an-end-point-that-requires-basicauth-but-want-to-hide-t + +Executando aplicação sinatra: + +1 - Entrar no diretório que contem o arquivo conf.ru +2 - Executar aplicação (rackup) -- libgit2 0.21.2