Skip to content

Instantly share code, notes, and snippets.

@rbeverly
Created February 7, 2012 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbeverly/1758747 to your computer and use it in GitHub Desktop.
Save rbeverly/1758747 to your computer and use it in GitHub Desktop.
<property name="valves">
<list>
<bean id="valve.access" class="org.apache.catalina.valves.AccessLogValve">
<property name="directory" value="log" />
<property name="prefix" value="${http.host}_access." />
<property name="suffix" value=".log" />
<property name="pattern" value="common" />
<property name="resolveHosts" value="false" />
<property name="rotatable" value="true" />
</bean>
<bean id="valve.remoteHost" class="org.apache.catalina.valves.RemoteHostValve">
<property name="allow" value="some.domain.com, localhost" />
</bean>
</list>
</property>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment