I've just setup a new website as a subdomain of my primary website. My server setup contains Apache fronting Tomcat 4.x on a Unix server. I'm directing all traffic that goes to the Apache webserver to the Tomcat server and setting up my subdomains in the server.xml file. This all works fine except that the application on my subdomain uses form authentication and after a successful login, the redirect goes to the default Tomcat index.jsp file rather than the default index.jsp file for the application as its supposed to. The index.jsp page for the app is in the root dir of the app folder.
If I don't configure the app as a subdomain, it works fine but as soon as I change the config to use the subdomain, it redirects to the wrong page. Some other info: Struts-based Jdk 1.4 MySQL db Below is the server.xml host config for my subdomain: <Host name="securecoin.outernett.com" debug="0" appBase="webapps/securecoin" unpackWARs="true" autoDeploy="true"> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/> <!-- context resources for application --> <Context path="" docBase="" debug="999" reloadable="true" crossContext="true"> <Realm className="org.apache.catalina.realm.JDBCRealm" debug="999" driverName="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/myapp?user=dbUname&password=dbpass" userTable="userTable" userNameCol="usernameField" userCredCol="password" userRoleTable="userRoleTable" roleNameCol="userRoleField"/> </Context> </Host> **************************************** And my web.xml auth config: <!-- Define the Login Configuration for this Application --> <login-config> <auth-method>FORM</auth-method> <realm-name>Secure Coin Invoice Application</realm-name> <form-login-config> <form-login-page>/login/login.jsp</form-login-page> <form-error-page>/login/error.jsp</form-error-page> </form-login-config> </login-config> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]