tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin Quijada <>
Subject Problem with Apache In front of Tomcat - No access to resource
Date Wed, 28 Dec 2016 22:09:28 GMT

I have  a problem with apache + Tomcat. I am trying to put apache in front of Tomcat to access
my app but I am getting an error 404.

I have 2 virtual servers in apache for 2 DNS with 2 tomcats

This is one of my virtual server

<VirtualHost *:80>
  ServerAlias *
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/html
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  #ProxyPreserveHost On

  ProxyRequests off
  ProxyPreserveHost On
  # Servers to proxy the connection, or
  # List of application servers Usage
  ProxyPass /        http://localhost:8082/jq
  ProxyPassReverse / http://localhost:8082/jq

The problem is when I access the site should be go to http://localhost:8082/jq
but instead it goes to http://localhost:8082/jq/jq and obvious I get an error 404.

My problem is I dont know why it duplicates the jq suffix if I go to http://ipserver1:8082/jq
there is no problem.

I check the error.log from apache and there is nothing to see.

Any help or any clues will be appreciated.

This is the output when I do
Estado HTTP 404 - /jqjq/

type Informe de estado

mensaje /jqjq/

descripción El recurso requerido no está disponible.

Apache Tomcat/8


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message