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

169
Visualizações
Apache ProxyPass with url path

I have a domain name e.g. example.com and its pointed to a jboss server

When i accessing https://example.com, its working fine.

The application is deployed in root path.(i.e. context-root is "/")

its pointed to a jboss server through apache proxy.

<VirtualHost *:443>
    ServerName example.com
    ServerAlias example.com

    SSLProxyEngine on
    SSLProxyCheckPeerCN on

    ProxyPreserveHost On
    AllowEncodedSlashes NoDecode
    RequestHeader set X-Forwarded-Proto "https"
    RequestHeader set X-Forwarded-Port "443"

    ProxyPass / https://10.xx.0.6:8443/
    ProxyPassReverse / https://10.xx.0.6:8443/

    ...
</VirtualHost>

Another web app ("otherapp") is deployed on the same jboss server. context-root is "/otherapp" Then i want to access the web app through the url like this "https://example.com/otherapp/" or "https://otherapp.example.com/"

is it possible?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You can use apache's <Location> directive

...
    <Location /otherapp>
        ProxyPass https://10.xx.0.6:8443/
        ProxyPassReverse https://10.xx.0.6:8443/
    </Location>

More help here: Is it possible to use relative path in ProxyPass/ProxyPassReverse?

Apache docs (take note of the trailing slash): https://httpd.apache.org/docs/2.4/mod/core.html#location

over 4 years ago · Santiago Trujillo Relatório
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