Database Reference
In-Depth Information
Listing 11-2. Example of Annotation Configuration
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<!--
Listener and GlobalNamingResources excluded for brevity
-->
<Service name="Catalina">
<Connector port="8090" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"
URIEncoding="UTF-8" useBodyEncodingForURI="true" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8"
useBodyEncodingForURI="true"/>
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Host name="practicalneo4j-java"
appBase="/path-to-workspace/practicalneo4j-springdata/WebContent"
unpackWARs="true" autoDeploy="true" >
<Context path="" docBase=""
aliases="/resources=/path-to-workspace/practicalneo4j- springdata/WebContent/resources"
reloadable="true" swallowOutput="true" />
</Host>
</Engine>
</Service>
</Server>
Apache Tomcat and Apache HTTP
If you already have Apache HTTP installed (or some other webserver) and configured on port 80, you need to make
sure that you do one of the following:
Ensure that Apache HTTP (or other service on port 80) has been stopped. You can then
configure and run Tomcat on port 80.
Enable and configure ProxyPass in your virtual hosts file, as shown in Listing 11-3.
Use the default Apache Tomcat port of 8080.
If you use Apache HTTP with many other projects and do not want spend time starting and stopping Apache
HTTP, I recommend the second option, which is shown in Listing 11-3.
Listing 11-3. Minimum Configuration for httpd-vhosts.conf
<VirtualHost *:80>
ServerName practicalneo4j-java
ProxyPreserveHost On
ProxyPass / http://practicalneo4j-spring:8080/
ProxyPassReverse / http://practicalneo4j-spring:8080/
</VirtualHost>
 
Search WWH ::




Custom Search