You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Setya <js...@gmail.com> on 2011/02/01 02:40:08 UTC

RE: [users@httpd] Missing static contents on 1st page hit with Apache+mod_jk

Hi,

>From the logs, on 1st page hit requests are appended with jsessionid &
jsessionidversion, while the 2nd hit are not, maybe this is what causes the
static contents are not rendered on 1st page hit ? Could somebody explain
about this ?

Regards,

Setya


john.3.newton wrote:
> 
> So... What are you upset about? Is the server not working properly or not
> serving pages properly? Is it going straight to tomcat instead of serving
> a static page, or do you just want more detail in your apache logs?
> 
> John Newton
> 
> 
> -----Original Message-----
> From: Setya [mailto:jsetya@gmail.com] 
> Sent: Monday, January 31, 2011 1:46 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Missing static contents on 1st page hit with
> Apache+mod_jk
> 
> 
> Hi, 
> 
> This is what I get from Apache's access_log file:
> 
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET / HTTP/1.1" 302 -
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /;jsessionid=9c3908b88220b3ede29a9a376456.NRSInstance1;jsessionidversion=/:0?x=gxlH4WOrHXyQ6FxyqaLHNyt8bQVL1SKKzmeFvqAf-I4
> HTTP/1.1" 200 3801
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /;jsessionid=9c3908b88220b3ede29a9a376456.NRSInstance1;jsessionidversion=/script/jquery-1.4.2.min.js
> HTTP/1.1" 302 -
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /;jsessionid=9c3908b88220b3ede29a9a376456.NRSInstance1;jsessionidversion=/styles/reset.css
> HTTP/1.1" 302 -
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /;jsessionid=9c3908b88220b3ede29a9a376456.NRSInstance1;jsessionidversion=/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
> HTTP/1.1" 302 -
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /;jsessionid=9c3908b88220b3ede29a9a376456.NRSInstance1;jsessionidversion=/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
> HTTP/1.1" 302 -
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /;jsessionid=9c3908b88220b3ede29a9a376456.NRSInstance1;jsessionidversion=/styles/login.css
> HTTP/1.1" 302 -
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /;jsessionid=9c3908b88220b3ede29a9a376456.NRSInstance1;jsessionidversion=/styles/grid.css
> HTTP/1.1" 302 -
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /?x=kE1hmCXvkMk55glYTqrjgyELz9G7S35LQEk56Rh8biQ HTTP/1.1" 200 1944
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /?x=TWr28XM6KQPCgAJanYqWXqX9kuTa98ZaVBOBngQt254 HTTP/1.1" 200 3801
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /?x=yxoGmrDQD1HqN5QpnGztJd2sRosG0aixjY2vpfp*61A HTTP/1.1" 200 3801
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /?x=iqDMDndLavhcSSNqC8ny9OF*yr7MR7Yv8LcCunp69x0 HTTP/1.1" 200 3801
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /?x=UuLaSRhiUCVUZUgpYUeiXm7U5Q5a0zzCdfJvypyMcok HTTP/1.1" 200 3801
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /?x=cSXMz7n514pRMkVs3nKy9i8G5Do9s7guI1x*Dr3B7XY HTTP/1.1" 200 3801
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /;jsessionid=9c3908b88220b3ede29a9a376456.NRSInstance1;jsessionidversion=/images/logo-xl.png
> HTTP/1.1" 302 -
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /;jsessionid=9c3908b88220b3ede29a9a376456.NRSInstance1;jsessionidversion=/images/logo-nationalroamingservice.png
> HTTP/1.1" 302 -
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /?x=ATGKndntTgdw2QedCwAi2PTDyd7t7QyJdAf0*xpTE1w HTTP/1.1" 200 3801
> 10.21.114.90 - - [31/Jan/2011:08:50:28 +0700] "GET
> /?x=XaOA-S5TF77ePE6y-17kS6IxJDcqOBlhKNhD1VBaG0o HTTP/1.1" 200 3801
> ::1 - - [31/Jan/2011:08:50:36 +0700] "OPTIONS * HTTP/1.0" 200 -
> 10.21.114.90 - - [31/Jan/2011:08:50:37 +0700] "GET / HTTP/1.1" 302 -
> 10.21.114.90 - - [31/Jan/2011:08:50:37 +0700] "GET
> /?x=lXPF7qGw1FiY8py-J3vtk2kd*y4dlAMijxUx6EiWxqg HTTP/1.1" 200 3801
> 10.21.114.90 - - [31/Jan/2011:08:50:37 +0700] "GET /styles/reset.css
> HTTP/1.1" 200 1077
> 10.21.114.90 - - [31/Jan/2011:08:50:37 +0700] "GET /styles/login.css
> HTTP/1.1" 200 2605
> 10.21.114.90 - - [31/Jan/2011:08:50:37 +0700] "GET /styles/grid.css
> HTTP/1.1" 200 9981
> 10.21.114.90 - - [31/Jan/2011:08:50:37 +0700] "GET
> /resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
> HTTP/1.1" 200 1201
> 10.21.114.90 - - [31/Jan/2011:08:50:37 +0700] "GET
> /resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
> HTTP/1.1" 200 10530
> 10.21.114.90 - - [31/Jan/2011:08:50:37 +0700] "GET
> /script/jquery-1.4.2.min.js HTTP/1.1" 200 72174
> 10.21.114.90 - - [31/Jan/2011:08:50:38 +0700] "GET
> /images/logo-nationalroamingservice.png HTTP/1.1" 200 2654
> 10.21.114.90 - - [31/Jan/2011:08:50:38 +0700] "GET /images/logo-xl.png
> HTTP/1.1" 200 16734
> 10.21.114.90 - - [31/Jan/2011:08:50:38 +0700] "GET /images/bg-body.gif
> HTTP/1.1" 200 51
> 10.21.114.90 - - [31/Jan/2011:08:50:38 +0700] "GET
> /images/icons/ico-check.png HTTP/1.1" 200 396
> 10.21.114.90 - - [31/Jan/2011:08:50:38 +0700] "GET /images/bg-intro3.jpg
> HTTP/1.1" 200 49369
> 
> The above log results from 1st & 2nd hit on the home page.
> 
> 
> Regards,
> 
> Setya
> -- 
> View this message in context:
> http://old.nabble.com/Missing-static-contents-on-1st-page-hit-with-Apache%2Bmod_jk-tp30785418p30804724.html
> Sent from the Apache HTTP Server - Users mailing list archive at
> Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Missing-static-contents-on-1st-page-hit-with-Apache%2Bmod_jk-tp30785418p30812691.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Missing static contents on 1st page hit with Apache+mod_jk

Posted by Setya <js...@gmail.com>.
Thank you for your response,

I've found the cause of the problem, it seems that Apache doesn't like URL
that contains jsessionid. The solution is to use Rewrite to strip down
jsessionid.

Regards,

Setya


Nick Kew wrote:
> 
> On Mon, 31 Jan 2011 17:40:08 -0800 (PST)
> Setya <js...@gmail.com> wrote:
> 
>> 
>> Hi,
>> 
>> From the logs, on 1st page hit requests are appended with jsessionid &
>> jsessionidversion, while the 2nd hit are not, maybe this is what causes
>> the
>> static contents are not rendered on 1st page hit ? Could somebody explain
>> about this ?
> 
> The jsession stuff is what your browser requested, and presumably
> come from your application on the glassfish.
> 
> The server has returned a bunch of redirects (302s).  This may
> be intentional.  If so, you need to figure out where the redirects
> are going (your browser can tell you that), and fix it.
> 
> The tutorial at http://www.apachetutor.org/admin/reverseproxies
> may help to understand why it's not working, although not all
> the techniques described there are applicable with mod_jk.
> 
> The fact that you're getting session stuff and redirects
> associated with static contents probably indicates a
> poorly-implemented application running on the glassfish.
> 
> 
> -- 
> Nick Kew
> 
> Available for work, contract or permanent.
> http://www.webthing.com/~nick/cv.html
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Missing-static-contents-on-1st-page-hit-with-Apache%2Bmod_jk-tp30785418p30842447.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Missing static contents on 1st page hit with Apache+mod_jk

Posted by Nick Kew <ni...@webthing.com>.
On Mon, 31 Jan 2011 17:40:08 -0800 (PST)
Setya <js...@gmail.com> wrote:

> 
> Hi,
> 
> From the logs, on 1st page hit requests are appended with jsessionid &
> jsessionidversion, while the 2nd hit are not, maybe this is what causes the
> static contents are not rendered on 1st page hit ? Could somebody explain
> about this ?

The jsession stuff is what your browser requested, and presumably
come from your application on the glassfish.

The server has returned a bunch of redirects (302s).  This may
be intentional.  If so, you need to figure out where the redirects
are going (your browser can tell you that), and fix it.

The tutorial at http://www.apachetutor.org/admin/reverseproxies
may help to understand why it's not working, although not all
the techniques described there are applicable with mod_jk.

The fact that you're getting session stuff and redirects
associated with static contents probably indicates a
poorly-implemented application running on the glassfish.


-- 
Nick Kew

Available for work, contract or permanent.
http://www.webthing.com/~nick/cv.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org