WebSphere HTTP Server - IHS 2.0 Config Problem / IHS 2.0 Change?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > May 2005 > IHS 2.0 Config Problem / IHS 2.0 Change?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author IHS 2.0 Config Problem / IHS 2.0 Change?

2005-05-18, 6:06 pm

OK, new to this group and fairly new to using Websphere and IHS so I'll try to word this as best as I can.

We have two sites, one on WS4 and IHS 1.3 and the other on WS5 and IHS 2.0. For each site, we have the following mod rewrite in the httpd.conf file:

# Collect banner information
RewriteCond %{QUERY_STRING} rotation=.+ [NC]
RewriteCond %{QUERY_STRING} banner=.+ [NC]
RewriteCond %{QUERY_STRING} src_cd=.+ [NC]
RewriteCond %{QUERY_STRING} !url=
RewriteRule ^(/|/.+\.html|/.+\.htm)$ /servlet/BannerReceiver?url=$1&%{QUERY_STRING} [L,R]

On the WS4/IHS1.3 site, if I type in the following URL
"www.WS4site.com/dir1", the mod rewrite first passes on the url since it does not contain "html" or "htm" but then the url is rewritten to include the index.html file that is in dir1 and again checked by the mod rewrite rule. This time, since it includes
"html", it matches the mod rewrite rule and the rule forwards the requested url to /servlet/BannerReceiver.

However, with the other site on WS5/IHS2.0, with the same directory structure and mod rewrite rule, entering the URL "www.WS5site.com/dir1", the mod rewrite again passes on the url the first time through since it does not contain "html" or "htm" but after
the url is rewritten to include the index.html file that is in the directory dir1, the new url is not even tested by the mod rewrite rule.

So, in summary, it appears that using WS4/IHS1.3, the url is tested 2x, once before index.html is added and once after. With WS5/IHS2.0, the url is only tested once.

By comparison, if the url "www.WS5site.com" (the root) is entered, the url is tested 2x against the rule so it appears that the problem only occurs when the requested url is a subdirectory.

We have glanced at the IHS 1.3 and 2.0 httpd.conf files for obvious differences that might cause this problem but nothing was obvious.

Any help/guidance on this issue would be greatly appreciated! Thanks!
Sunit Patke

2005-05-18, 6:06 pm

In either case how is the URL rewritten to include index.html? When you pass
a URL of www.foo.com/dir1, HTTP server will go to dir1 and as you have not
specified any file it will serve a file based on DirectoryIndex directive.

Can you pls check the contents of the index.html file on both servers and
verify that you are not using META HTTP-EQUIV=Refresh tag in the index.html
file in WS4 & IHS 1.3?

Sunit

<rzs57000@gsk.com> wrote in message
news:1788534759.1116437687492.JavaMail.wassrvr@ltsgwas007.sby.ibm.com...
> OK, new to this group and fairly new to using Websphere and IHS so I'll
> try to word this as best as I can.
>
> We have two sites, one on WS4 and IHS 1.3 and the other on WS5 and IHS
> 2.0. For each site, we have the following mod rewrite in the httpd.conf
> file:
>
> # Collect banner information
> RewriteCond %{QUERY_STRING} rotation=.+ [NC]
> RewriteCond %{QUERY_STRING} banner=.+ [NC]
> RewriteCond %{QUERY_STRING} src_cd=.+ [NC]
> RewriteCond %{QUERY_STRING} !url=
> RewriteRule ^(/|/.+\.html|/.+\.htm)$
> /servlet/BannerReceiver?url=$1&%{QUERY_STRING} [L,R]
>
> On the WS4/IHS1.3 site, if I type in the following URL
> "www.WS4site.com/dir1", the mod rewrite first passes on the url since it
> does not contain "html" or "htm" but then the url is rewritten to include
> the index.html file that is in dir1 and again checked by the mod rewrite
> rule. This time, since it includes "html", it matches the mod rewrite rule
> and the rule forwards the requested url to /servlet/BannerReceiver.
>
> However, with the other site on WS5/IHS2.0, with the same directory
> structure and mod rewrite rule, entering the URL "www.WS5site.com/dir1",
> the mod rewrite again passes on the url the first time through since it
> does not contain "html" or "htm" but after the url is rewritten to include
> the index.html file that is in the directory dir1, the new url is not even
> tested by the mod rewrite rule.
>
> So, in summary, it appears that using WS4/IHS1.3, the url is tested 2x,
> once before index.html is added and once after. With WS5/IHS2.0, the url
> is only tested once.
>
> By comparison, if the url "www.WS5site.com" (the root) is entered, the url
> is tested 2x against the rule so it appears that the problem only occurs
> when the requested url is a subdirectory.
>
> We have glanced at the IHS 1.3 and 2.0 httpd.conf files for obvious
> differences that might cause this problem but nothing was obvious.
>
> Any help/guidance on this issue would be greatly appreciated! Thanks!



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com