Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You I wanted to setup a confluence for me and some limited organization, but confluence does not have that feature at the moment. In that case, you can allow access to only certain IP Addresses by adding following line in server.xml:

Code Block
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127.0.0.1,192.168.0.1,192.168.50.*" />

...

Code Block
<Server port="8000" shutdown="SHUTDOWN" debug="0">
    <Service name="Tomcat-Standalone">
        <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8090" minProcessors="5"
                   maxProcessors="75"
                   enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"
                   useURIValidationHack="false" URIEncoding="UTF-8"/>
        <Engine name="Standalone" defaultHost="localhost" debug="0">
            <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false">
                <Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
                    <Manager pathname="" />
                </Context>
                <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127.0.0.1,192.168.0.1,192.168.50.*" />
            </Host>
        </Engine>
    </Service>
</Server>

Note

  • If you're clients are using DHCP, your Confluence might be inaccessible due to the changes in the IP Address.
  • For more information, please refer the Apache Tomcat Documentation.