Hi Chris,

* Are you sure there are no other JkMounts?*
Yes. There are no other JKMounts.


* What is your DocumentRoot set to? Do you have any Alias directives that
are pointing into CATALINA_BASE/webapps?*
In which file should i look these. I haven't set them.




*You don't want this: the ApacheConfig listener should probably be removed
forever. This probably shouldn't be here: you already have ApacheConfig
above, and you probably shouldn't have it here again.*
Removed <Listener className="org.apache.jk.config.ApacheConfig"
modJk="C:/Apache24/modules/mod_jk.so"/>



*I don't see any actual problems so far, but there's still room for
"alternative" configuration. What's in your "webapps" directory?*

*tomcat installation default folders (like  docs, host-manager, manager,
ROOT) and jenkins, example2*
I am able to access apache using url http://localhost
I am not able to access any tomcat apps using urls like
http://localhost/jenkins or http://localhost/example2
But when i put port number in url i can access urls like
http://localhost:8080/jenkins or http://localhost:8080/example2
I short, I am expecting access http://localhost/jenkins

Following server.xml after making your suggested changes:
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
  <Listener
className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener
className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <Service name="Catalina">

    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
      </Host>
    </Engine>
  </Service>
</Server>

Thanks,



On Sat, Jan 3, 2015 at 1:02 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Sandip,
>
> On 1/1/15 10:20 AM, Sandip Gaikwad wrote:
> > Following are entries in files. Please let me know what is going
> > wrong.
> >
> > *workers.properties* worker.list=worker1 # Set properties for
> > worker1 (ajp13) worker.worker1.type=ajp13
> > worker.worker1.host=localhost worker.worker1.port=8009
> > worker.worker1.connection_pool_size=10
> > worker.worker1.connection_pool_timeout=600
> > worker.worker1.socket_keepalive=true
> > worker.worker1.socket_timeout=300
> >
> >
> > *httpd.conf* LoadModule jk_module "C:/Apache24/modules/mod_jk.so"
> > JkWorkersFile
> > "C:/tomcat-connectors-1.2.40-src/conf/workers.properties" JkLogFile
> > "C:/Apache24/logs/mod_jk.log" JkLogLevel info JkLogStampFormat "[%a
> > %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat
> > -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount
> > /jenkins/* worker1
>
> Okay, so /jenkins is /example1 from your original post. What is /example2?
>
> Are you sure there are no other JkMounts?
>
> What is your DocumentRoot set to? Do you have any Alias directives
> that are pointing into CATALINA_BASE/webapps?
>
> > *server.xml* <?xml version='1.0' encoding='utf-8'?> <Server
> > port="8005" shutdown="SHUTDOWN"> <Listener
> > className="org.apache.jk.config.ApacheConfig"
> > modJk="C:/Apache24/modules/mod_jk.so"/>
>
> You don't want this: the ApacheConfig listener should probably be
> removed forever.
>
> > <Listener
> > className="org.apache.catalina.startup.VersionLoggerListener" />
> > <Listener
> > className="org.apache.catalina.core.AprLifecycleListener"
> > SSLEngine="on" /> <Listener
> > className="org.apache.catalina.core.JreMemoryLeakPreventionListener"
> > /> <Listener
> > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> > /> <Listener
> > className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
> > />
> >
> > <GlobalNamingResources> <Resource name="UserDatabase"
> > auth="Container" type="org.apache.catalina.UserDatabase"
> > description="User database that can be updated and saved"
> > factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> > pathname="conf/tomcat-users.xml" /> </GlobalNamingResources>
> >
> > <Service name="Catalina">
> >
> > <Connector port="8080" protocol="HTTP/1.1"
> > connectionTimeout="20000" redirectPort="8443" /> <Connector
> > port="8009" protocol="AJP/1.3" redirectPort="8443" /> <Engine
> > name="Catalina" defaultHost="localhost"> <Realm
> > className="org.apache.catalina.realm.LockOutRealm"> <Realm
> > className="org.apache.catalina.realm.UserDatabaseRealm"
> > resourceName="UserDatabase"/> </Realm>
> >
> > <Host name="localhost"  appBase="webapps" unpackWARs="true"
> > autoDeploy="true"> <Listener
> > className="org.apache.jk.config.ApacheConfig"
> > modJk="C:/Apache24/modules/mod_jk.so"/>
>
> This probably shouldn't be here: you already have ApacheConfig above,
> and you probably shouldn't have it here again.
>
> > <Valve className="org.apache.catalina.valves.AccessLogValve"
> > directory="logs" prefix="localhost_access_log" suffix=".txt"
> > pattern="%h %l %u %t &quot;%r&quot; %s %b" /> </Host> </Engine>
> > </Service> </Server>
>
> I don't see any actual problems so far, but there's still room for
> "alternative" configuration. What's in your "webapps" directory?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJUpvJrAAoJEBzwKT+lPKRYBmsQAKegRJvcvXmdQcQ1OcMekzpM
> 2e23NapNhxwuCpkRgK567Uzfyaqw9U+K43gvRitiWx9BO0vNq87UGEipa2k9mp/s
> YEW7TClRqO9C25gKfEj9MTvhPBztg0f0fMFEwtfKlsIB1sCnWFSkfpYuzq9IfN5I
> DTRCDCLNLVmxCp5oFfuyOeFgamEuGu6vz9Z4+P/IsTO2iXMDlJbdTcUcn+HoU0lV
> e2EVCW4mHhQw/Nvmf3/Ib7w5YR8VmdFCBfsY1yXFZ3pi5fZYS4waYheBZmYN/aH1
> AvtA7JX2nnquFStOTNM1x+KsZcBkH+tGtFgMlrn9k0HFNBPzD6/CGJUGywlRekLR
> gA0re6sh3KoZJs0ubu3oiAhUy0icqYda2NhalNYmtctvBGQ7QgvqXgiNvEn1LnBM
> 07Wf6i1c27IxM0yGEAPXWLcbRO71QjNl3yGctKma0UKyZK9bjX+tGP+mt/1NLSYK
> WV+QzEQDGa09t2x37RjrNtFOMOMWK8uWmLabguwHnK2YCqf+9CViBOkukBpKXf9C
> zW5/P2E6ZoDiVNL/0bi6HIr7ewICMXiaG51PoNSIfPp6szs0QhOwrJVr07flCvba
> b0hmq4duugZkCx/7nuWpa4MtAxIun4S/ZGufWJnTHJaZJS/aJisgJVXkPQ+v8PP8
> 7PnUU232mmp/2DuPQNBy
> =vyvf
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Sandip Gaikwad
9987626799

Reply via email to