title: Unable to find httpd.conf
body: <p>I'm running tomcat and I want to change the default <code>webroot</code> so that it points to another location.  Is there a way to find out what's running tomcat or where the default webroot is set as I can't find httpd.conf which is where I believe it's usually set?</p>
  
  <p>Cheers,</p>
  
  <p>Alexei Blue.</p>
  
  <p>**UPDATE:**</p>
  
  <p>It's been a long time since I looked at this question that I forgot about it.  In the end it turned out that we were using Apache HTTPD to accept requests from port 80.  From there we had the <code>webroot</code> and <code>ProxyPass</code> rules set in the <code>/etc/httpd/conf/virtual-hosts/default.conf</code> file (these can also be set in <code>/etc/httpd/conf/httpd.conf</code>).  From there we had several tomcat instances running, all hosted on different ports which are setup in <code>apache-tomcat-x/conf/server.xml</code>.</p></p>
  
  <p>When I wrote this question I was trying to setup a new tomcat instance to run an application in development and was told I would need to change the <code>webroot</code> to access my application, which was incorrect.  Instead what I needed was to include a <code>ProxyPass</code> rule so that when my application name was recognised in the URL, HTTPD would send the request to the correct tomcat instance to be processed.
  E.g.</p></p>
  
  <pre><code>www.domain.com/myApplication
  
  In /etc/httpd/conf/virtual-hosts/default.conf
  
  ProxyPass /myApplication/ ajp://127.0.0.1:&lt;ajp_port&gt;/myApplication/
  ProxyPassReverse /myApplication/ ajp://127.0.0.1:&lt;ajp_port&gt;/myApplication/
  </code></pre>
  
  <p>Where the ajp_port is setup in <code>apache-tomcat-x/conf/server.xml</code>.  I needed to ensure that non of the ports conflicted with other tomcat instances so remember to check all ports i.e. Shutdown, HTTP, HTTP with SSL, AJP etc.</p>