Virtual Host Question...again
harm88 Jun 12, 2005 3:17 PMHello, I am seeking advice on how to change the virtual host setting for my installation. Judging from responses to similar questions, I sense that the veterans are getting rather bored with this theme from newbees. Nevertheless, I will ask it again.
Currently, I call my application using the following current url syntax, whereas I would like to change it to the desired url syntax.
Current url: http://mylaptop:1977/myapp/mymainmenu.jsp
Desired url: http://myapp/ mymainmenu.jsp
Naturally, I have read the manual, and have tried to reproduce the example in ADMINGUIDE.PDF, Page 325/6 (Section 9.6: Setting up Virtual Hosts). Further, I have searched this forum and have come across various questions similar to mine with similar suggestions. However, I have not been able to succeed (404 errors for example). One thing that is unique about my installation is that I found that the default HTTP port of 8080 conflicts with the TSNLISTENER for ORACLE which is also running on my laptop. Therefore, I have changed this port (from 8080 to 1977) according to the server.xml file attached.
Before making any further changes, I would like to ask if there is any thing that I have missed in my setup or if there are other suggestions for further changes? For example, are there any other changes that are needed to coincide with the HTTP port change?
***********************************************************************
1. jboss-web.xml
<jboss-web>
<!-- Uncomment the security-domain to enable security. You will
need to edit the htmladaptor login configuration to setup the
login modules used to authentication users.
<security-domain>java:/jaas/jmx-console</security-domain>
-->
<context-root>/</context-root>
<virtual-host>myapp.com</virtual-host>
</jboss-web>
2. server.xml
<!-- A HTTP/1.1 Connector on port 8080 -->
<!-- A HTTP Connector on port 8080 DML Change to 1977 -->
<!-- A AJP 1.3 Connector on port 8009 -->
<!-- SSL/TLS Connector configuration using the admin devl guide keystore
-->
<!-- The JAAS based authentication and authorization realm implementation
that is compatible with the jboss 3.2.x realm implementation.
- certificatePrincipal : the class name of the
org.jboss.security.auth.certs.CertificatePrincipal impl
used for mapping X509[] cert chains to a Princpal.
-->
<!-- A subclass of JBossSecurityMgrRealm that uses the authentication
behavior of JBossSecurityMgrRealm, but overrides the authorization
checks to use JACC permissions with the current java.security.Policy
to determine authorized access.
-->
autoDeploy="false" deployOnStartup="false" deployXML="false">
myapp.com