Pointer Domain Handling Tutorial

This tutorial explains how you can host pointer domains with a Java web hosting package from JavaPipe. This is assuming that you wish to host a particular webapp for a different pointer domain other than your primary domain.

  1. First thing you need to do is to create a pointer domain in you SiteWorx control panel.
  2. Then you need to add a Host entry in your server.xml (It is a very good idea to back up this server.xml file before editing it.) Be careful not to change any of the port information – doing so could get your site suspended.

Place following code after the last </Host> tag and just before the closing </engine> tag

<Host name="{pointerdomain.com}" debug="0" appBase="webapps"        
    unpackWARs="true" autoDeploy="true">  
    <Alias>{www.pointerdomain.com}</Alias>  
    <Valve className="org.apache.catalina.valves.AccessLogValve"      
        directory="/home/{username}/var/{primarydomain.com}/logs"        
        prefix="{pointerdomain.com}_log." suffix=".txt"          
        pattern="common" resolveHosts="false"/>  
    <Context path="/"     
        docBase="/home/{username}/{primarydomain.com}/tomcat/webapps/{webappname}"        
        crossContext="false" reloadable="true"> 
    </Context>  
</Host>

Replace {username}, {domain.com}, {pointerdomain.com} and {webappname} with your own.

Set up the webapp or drop in a new WAR file of the new webappname in your webapps directory.

Restart tomcat.

Limitations for Pointer Domains.

  • There is no seperate email system for pointer domains. info@primarydomain.com and info@pointerdomain.com are the same.
  • 202 Users Found This Useful
Was this answer helpful?

Related Articles

Spring Framework

Need to develop Plain Old JAVA Objects? Want to have fun developing your application? Then we...

Subdomain Handling Tutorial

This tutorial explains how you can host subdomains with JavaPipe's Tomcat hosting. This is...

Choosing between JBoss7's Standalone or Domain features.

JBoss 7 introduced new feature called managed domains. Basically this is a multi-server...

How do I restart my tomcat?

However, if you have a private Tomcat instance with a Java host like us, then you have the...

How To Protect Directories with Apache Tomcat Realms

How To Protect Directories with Apache Tomcat Realm This document explains how to protect...