apache - Unable to find httpd.conf -
i'm running tomcat , want change default webroot
points location. there way find out what's running tomcat or default webroot set can't find httpd.conf believe it's set?
cheers,
alexei blue.
**update:**
it's been long time since looked @ question forgot it. in end turned out using apache httpd accept requests port 80. there had webroot
, proxypass
rules set in /etc/httpd/conf/virtual-hosts/default.conf
file (these can set in /etc/httpd/conf/httpd.conf
). there had several tomcat instances running, hosted on different ports setup in apache-tomcat-x/conf/server.xml
.
when wrote question trying setup new tomcat instance run application in development , told need change webroot
access application, incorrect. instead needed include proxypass
rule when application name recognised in url, httpd send request correct tomcat instance processed. e.g.
www.domain.com/myapplication in /etc/httpd/conf/virtual-hosts/default.conf proxypass /myapplication/ ajp://127.0.0.1:<ajp_port>/myapplication/ proxypassreverse /myapplication/ ajp://127.0.0.1:<ajp_port>/myapplication/
where ajp_port setup in apache-tomcat-x/conf/server.xml
. needed ensure non of ports conflicted other tomcat instances remember check ports i.e. shutdown, http, http ssl, ajp etc.
tomcat doesn't use httpd.conf, apache file. location of individual webapps kept in individual web.xml files, location of configs in ../tomcat6/conf/server.xml , web.xml
is files come want move, or compiles , executes them from?
Comments
Post a Comment