IHS 2.0 Config Problem / IHS 2.0 Change?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere HTTP Server > IHS 2.0 Config Problem / IHS 2.0 Change?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    IHS 2.0 Config Problem / IHS 2.0 Change?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-18-05 11: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&%{Q
UERY_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 doe
s not contain "html" or "htm" but then the url is rewritten to include the i
ndex.html file that is in dir1 and again checked by the mod rewrite rule. Th
is 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 structur
e and mod rewrite rule, entering the URL "www.WS5site.com/dir1", the mod rew
rite again passes on the url the first time through since it does not contai
n "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 i
s 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 differen
ces that might cause this problem but nothing was obvious.

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





[ Post a follow-up to this message ]



    Re: IHS 2.0 Config Problem / IHS 2.0 Change?  
Sunit Patke


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-18-05 11: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!







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:47 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register