Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

239
Visualizações
301 redirect using Apache httpd and AWS ELB

I'm trying to do a 301 redirect using Apache httpd. Below is my vhost.conf

<VirtualHost *:80>
ServerName www.example.com
ServerAlias *.example.com
ProxyPass / http://www.example.com:8080/
ProxyPassReverse / http://www.example.com:8080/
ProxyPreserveHost  On

RewriteEngine On
RewriteCond %{QUERY_STRING} ^detailStory=([^&]+)$
RewriteRule ^(.*)$ /story/%1? [L,R=301,NE]
</VirtualHost>

It seems to be working fine when I add the IP to the domain name configuration(route 53). But when I introduce an AWS ELB and configure domain name with its value, the redirection stops working(Note: I'm able to access the website but the redirection doesn't seem to be working).

Any idea on how to resolve this or is there a way to setup dynamic redirection directly in AWS load balancer?

Any advice/comment would be highly appreciated! Thank you in advance!

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda