Hi All...
I'm in the process of building a new test/production server with Apache and Tomcat on Windows2K.
I've got the SSL working with Tomcat, and installed a JDBC realm using PostgreSQL. Works fine (and I'll post stuff on this on the Tomcat board later).
Then I go to install Apache Web Server. Installs fine.
Go to make the connection b/t Apache and Tomcat, doesn't work so fine.
I setup a virtual host (BindAddress * is set), with my system's name, when I type in it redirects to my - fine. But to access any anything on Tomcat I have to type ... and it's flaky.
Even w/o virtual host set it doesn't work.
I've uncommented the AJP stuff in server.xml, installed the mod_webapp.so and dll files... I just can't see what the problem is!
Here are my server.xml and httpd.conf files. The httpd is a little messy right now, ... well, here - can someone please throw me some info?
=========================================================
Httpd.conf
=========================================================
.
.
.
#<IfModule mod_webapp.c>
#
#DocumentRoot "C:/JAVADEV/Apache Group/Apache Tomcat 4.0/"
#DocumentRoot .
#WebAppConnection warpConnection warp localhost:8008
#WebAppDeploy examples warpConnection /examples
#WebAppDeploy root warpConnection /root
#
#WebAppConnection warpConnection warp localhost:8008
#WebAppDeploy examples warpConnection /examples
#WebAppDeploy manager warpConnection /manager
#WebAppDeploy webdav warpConnection /webdav
#WebAppDeploy tomcat-docs warpConnection /tomcat-docs
#</IfModule>
#
# ===== I tried the above configs - didn't work.
.
.
.
# ===================================================
# === Tomcat connector ===
# ===================================================
#
# Setup Apache to direct Servlet & JSP calls
# NameVirtualHost 127.0.0.1:80
#
<VirtualHost 127.0.0.1>
ServerAdmin virtualadmin@virtualhost.com
DocumentRoot "C:/JAVADEV/Apache Group/Apache Tomcat 4.0/"
ServerName localhost
# also tried this with my computer's name
#<IfModule mod_webapp.c>
WebAppConnection warpConnection warp profitma-tuobr3:8008
WebAppDeploy root warpConnection /
WebAppDeploy manager warpConnection /manager
WebAppDeploy examples warpConnection /examples
WebAppDeploy webdav warpConnection /webdav
WebAppDeploy tomcat-docs warpConnection /tomcat-docs
#</ifModule>
ErrorLog logs/warpConnection-error_log.txt
ServerSignature Email
</VirtualHost>
=========================================================
Server.xml
=========================================================
.
.
.
<!-- Define an Apache-Connector Service -->
<Service name="Tomcat-Apache">
<Connector className=
"org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0"/>
<!-- Replace "localhost" with what your Apache "ServerName" is set to -->
<Engine className=
"org.apache.catalina.connector.warp.WarpEngine"
name="localhost" debug="0" appBase="webapps">
<!-- Global logger unless overridden at lower levels -->
<Logger className= "org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt" timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>
I'm in the process of building a new test/production server with Apache and Tomcat on Windows2K.
I've got the SSL working with Tomcat, and installed a JDBC realm using PostgreSQL. Works fine (and I'll post stuff on this on the Tomcat board later).
Then I go to install Apache Web Server. Installs fine.
Go to make the connection b/t Apache and Tomcat, doesn't work so fine.
I setup a virtual host (BindAddress * is set), with my system's name, when I type in it redirects to my - fine. But to access any anything on Tomcat I have to type ... and it's flaky.
Even w/o virtual host set it doesn't work.
I've uncommented the AJP stuff in server.xml, installed the mod_webapp.so and dll files... I just can't see what the problem is!
Here are my server.xml and httpd.conf files. The httpd is a little messy right now, ... well, here - can someone please throw me some info?
=========================================================
Httpd.conf
=========================================================
.
.
.
#<IfModule mod_webapp.c>
#
#DocumentRoot "C:/JAVADEV/Apache Group/Apache Tomcat 4.0/"
#DocumentRoot .
#WebAppConnection warpConnection warp localhost:8008
#WebAppDeploy examples warpConnection /examples
#WebAppDeploy root warpConnection /root
#
#WebAppConnection warpConnection warp localhost:8008
#WebAppDeploy examples warpConnection /examples
#WebAppDeploy manager warpConnection /manager
#WebAppDeploy webdav warpConnection /webdav
#WebAppDeploy tomcat-docs warpConnection /tomcat-docs
#</IfModule>
#
# ===== I tried the above configs - didn't work.
.
.
.
# ===================================================
# === Tomcat connector ===
# ===================================================
#
# Setup Apache to direct Servlet & JSP calls
# NameVirtualHost 127.0.0.1:80
#
<VirtualHost 127.0.0.1>
ServerAdmin virtualadmin@virtualhost.com
DocumentRoot "C:/JAVADEV/Apache Group/Apache Tomcat 4.0/"
ServerName localhost
# also tried this with my computer's name
#<IfModule mod_webapp.c>
WebAppConnection warpConnection warp profitma-tuobr3:8008
WebAppDeploy root warpConnection /
WebAppDeploy manager warpConnection /manager
WebAppDeploy examples warpConnection /examples
WebAppDeploy webdav warpConnection /webdav
WebAppDeploy tomcat-docs warpConnection /tomcat-docs
#</ifModule>
ErrorLog logs/warpConnection-error_log.txt
ServerSignature Email
</VirtualHost>
=========================================================
Server.xml
=========================================================
.
.
.
<!-- Define an Apache-Connector Service -->
<Service name="Tomcat-Apache">
<Connector className=
"org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0"/>
<!-- Replace "localhost" with what your Apache "ServerName" is set to -->
<Engine className=
"org.apache.catalina.connector.warp.WarpEngine"
name="localhost" debug="0" appBase="webapps">
<!-- Global logger unless overridden at lower levels -->
<Logger className= "org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt" timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>