Association de sous-domaine Tomcat

J’ai une application Spring accessible en tant que www.mydomain.com sur Amazon AWS. Maintenant, je souhaite qu’une autre application Spring sous la même instance Amazon (et donc utilisant le même tomcat) soit accessible sous mysubdomain.mydomain.com. Mon Tomcat est dirigé avec Apache.

App correspondant à www.mydomain.com est situé à:

/env/tomcat/apache-tomcat-7.0.26/ webapps / ROOT

Pour que l’application soit accessible sur mysubdomain.mydomain.com, j’ai créé un autre dossier à l’adresse suivante:

/env/tomcat/apache-tomcat-7.0.26/ mysubdomainapps / ROOT

Vous trouverez ci-dessous le contenu de server.xml et httpd.conf

server.xml

http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dissortingbuted under the License is dissortingbuted on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->   <!-- Security listener. Documentation at /docs/config/listeners.html  -->                 <!--  -->    <!--  -->  <!--  -->    <!-- You should set jvmRoute to support load-balancing via AJP ie :  -->   <!--  -->        <!--  -->    ****    

httpd.conf

  ServerName localhost ProxyRequests Off ProxyPreserveHost On  Order deny,allow Allow from all  ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/   ServerName mysubdomain.mydomain.com ProxyRequests Off ProxyPreserveHost On  Order deny,allow Allow from all  ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/  

Cela fait des heures que j’essaie de régler le problème, mais je n’ai pas réussi.
J’apprécierais vraiment votre aide.

Merci,
James

Ça a marché! Pour le DNS, j’avais créé un CNAME plus tôt. J’ai essayé avec A-record, et ça a bien marché!