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

125
Visualizações
Apache multiple subdomains pointing to one ip but to different ports

I searched a lot on how to create multiple subdomains pointing to the same IP address but to different sites and I found that with apache you can do it using the HTTP Host header and it works, but when I switch to HTTPS it doesn't work anymore because I saw that in the HTTPS protocol the Host header doesn't exist. How can I do that with HTTPS?

This is my current apache HTTP config file

000-domain.com.conf

<VirtualHost *:80>
    ServerName sub1.domain.com
    ServerAlias sub1.domain.com
    ServerAlias *.sub1.domain.com
    DocumentRoot "/var/www/sub1"
</VirtualHost>


<VirtualHost *:80>
    ServerName sub2.domain.com
    ServerAlias sub2.domain.com
    ServerAlias *.sub2.domain.com
    DocumentRoot /var/www/sub2
</VirtualHost>
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