tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick <nag...@efficax.net>
Subject Security Constraint works on port 8080 but not on 80 (Through mod_jk)
Date Wed, 14 Jan 2004 04:11:17 GMT
I thought it would be a good idea to have a place to learn while I have
my server on-line business uses. In my server.xml I have two sessions
running. One should answer on 8080 and the other off port 80 through
mod_jk/apache. I am testing a simple BASIC auth setup and for some
reason the app answers on port 8080 with  a username/password request.
and the one on apache just lets me straight in. The way I have the
configs I thought it wouldn't answer at all on 8080.

Can someone who has more than 1 frustrating week of experience take a
look at the configs for some obvious blunder.

Thanks Nix

<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/usr/local/apache/modules/mod_jk.so" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>        <GlobalNamingResources>
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
 
<!-- Apache Connector Service -->
<Service name="Tomcat-Apache">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="0"
useURIValidationHack="false"
               
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<Engine name="Apache"
defaultHost="hawaii.efficax.net"
debug="9">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log."
suffix=".txt"
timestamp="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="localhost_access_log."
suffix=".txt"
pattern="combined"
resolveHosts="false"/>
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="UserDatabase"/>
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<Host name="hawaii.efficax.net"
debug="9"
appBase="/usr/local/tomcat/webapps"
unpackWARs="true"
autoDeploy="true">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" forwardAll="false"
modJk="/usr/local/apache/modules/mod_jk.so" />
<Alias>localhost</Alias>
<Alias>www.efficax.net</Alias>
<Alias>192.167.223.86</Alias>
<Context path="/restricted" docBase="restricted" debug="0"
reloadable="true">
</Context>
<Context path="/test" docBase="test" debug="0" reloadable="true">
</Context>
<Context path="/webdba"
docBase="webdba"
debug="0"
reloadable="true"
crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="webdba_log." suffix=".txt"
timestamp="true"/>
</Context>
</Host>
</Engine>
</Service>
 
        <!-- Developer Instance -->
        <Service name="Tomcat-Standalone">
                <Connector
className="org.apache.coyote.tomcat4.CoyoteConnector"
                port="8080" minProcessors="5" maxProcessors="75"
                enableLookups="true" redirectPort="8443"
                acceptCount="100" debug="0" connectionTimeout="20000"
                useURIValidationHack="false" disableUploadTimeout="true"
/>
                <Engine name="Standalone" defaultHost="localhost"
debug="0">
                        <Logger
className="org.apache.catalina.logger.FileLogger"
                        prefix="catalina_log." suffix=".txt"
                        timestamp="true"/>
                        <Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
                        debug="0" resourceName="UserDatabase"/>
                        <!--
                        <Realm
className="org.apache.catalina.realm.MemoryRealm" />
                        -->
                        <!-- Define the default virtual host -->
                        <Host name="localhost" debug="0"
appBase="webapps"
                        unpackWARs="true" autoDeploy="true">
                                <Logger
className="org.apache.catalina.logger.FileLogger"
                                directory="logs" 
prefix="localhost_log." suffix=".txt"
                                        timestamp="true"/>
                                <!-- Tomcat Root Context -->
                                <!--
                                <Context path="" docBase="ROOT"
debug="0"/>
                                -->
                                <!-- Tomcat Examples Context -->
                                <Context path="/examples"
docBase="examples" debug="0"
                                reloadable="true" crossContext="true">
                                        <Logger
className="org.apache.catalina.logger.FileLogger"
                                        prefix="localhost_examples_log."
suffix=".txt"
                                        timestamp="true"/>
                                        <Ejb   name="ejb/EmplRecord"
type="Entity"
                                       
home="com.wombat.empl.EmployeeRecordHome"
                                       
remote="com.wombat.empl.EmployeeRecord"/>
                                        <Environment
name="maxExemptions" type="java.lang.Integer"
                                        value="15"/>
                                        <Parameter
name="context.param.name" value="context.param.value"
                                        override="false"/>
                                        <Resource
name="jdbc/EmployeeAppDb" auth="SERVLET"
                                        type="javax.sql.DataSource"/>
                                        <ResourceParams
name="jdbc/EmployeeAppDb">
                                       
<parameter><name>username</name><value>sa</value></parameter>
                                       <parameter><name>password</name><value></value></parameter>
                                       
<parameter><name>driverClassName</name>
                                       
<value>org.hsql.jdbcDriver</value></parameter>
                                        <parameter><name>url</name>
                                       
<value>jdbc:HypersonicSQL:database</value></parameter>
                                        </ResourceParams>
                                        <Resource name="mail/Session"
auth="Container"
                                        type="javax.mail.Session"/>
                                        <ResourceParams
name="mail/Session">
                                        <parameter>
                                        <name>mail.smtp.host</name>
                                        <value>localhost</value>
                                        </parameter>
                                        </ResourceParams>
                                        <ResourceLink
name="linkToGlobalResource"
                                        global="simpleValue"
                                        type="java.lang.Integer"/>
                                </Context>
                        </Host>
                </Engine>
        </Service>
</Server>


-- 
Nick (Nix) Gray
Senior Systems Engineer
Bruzenak Inc.
(512) 331-7998

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message