redirecting request on IBM Httpd2
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 > redirecting request on IBM Httpd2




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

    redirecting request on IBM Httpd2  


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


 
03-15-06 10:57 PM

How do I redirect all request to port 80 to WebSphere's 9443? I only want to
 server up the site on default_host ssl.





[ Post a follow-up to this message ]



    Re: redirecting request on IBM Httpd2  
Sunit Patke


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


 
03-15-06 10:57 PM

If I understand you correctly you want to send all HTTP traffic to HTTPS for
a WAS web application.
You have a websphere application listening on port 9443. Install IBM HTTP
Server with WAS plug-in. Make sure the host alias for you webapp has port
443 but not 80. Generate the plugin-cfg.xml file in WAS adminconsole and
make sure it is being used by IHS.
In httpd.conf create a Rewrite rule in VirtualHost with port 80 to forward
all traffic to HTTPS

Sunit

<shedrick.hollaway@navy.mil> wrote in message
news:1776277466.1142436890613.JavaMail.wassrvr@ltsgwas007.sby.ibm.com...
> How do I redirect all request to port 80 to WebSphere's 9443? I only want
> to server up the site on default_host ssl.







[ Post a follow-up to this message ]



    Re: redirecting request on IBM Httpd2  


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


 
03-15-06 10:57 PM

> If I understand you correctly you want to send all
> HTTP traffic to HTTPS for
> a WAS web application.

This is exactly what I want to do.

> You have a websphere application listening on port
> 9443. Install IBM HTTP
> Server with WAS plug-in. Make sure the host alias for
> you webapp has port
> 443 but not 80. Generate the plugin-cfg.xml file in
> WAS adminconsole and
> make sure it is being used by IHS.

I have done this and tested to verify.

> In httpd.conf create a Rewrite rule in VirtualHost
> with port 80 to forward
> all traffic to HTTPS
>
> Sunit

The setup of the VirtualHost and redirection is what I am unsure of doing. A
nd I was wondering if anyone had experience with doing this setup.





[ Post a follow-up to this message ]



    Re: redirecting request on IBM Httpd2  
Sunit Patke


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


 
03-15-06 10:57 PM

Which version of IHS?

Sunit

<shedrick.hollaway@navy.mil> wrote in message
news:1354520550.1142443254074.JavaMail.wassrvr@ltsgwas007.sby.ibm.com... 
>
> This is exactly what I want to do.
> 
>
> I have done this and tested to verify.
> 
>
> The setup of the VirtualHost and redirection is what I am unsure of doing.
> And I was wondering if anyone had experience with doing this setup.







[ Post a follow-up to this message ]



    Re: redirecting request on IBM Httpd2  


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


 
03-16-06 10:55 PM

IHS version is 2.0.47





[ Post a follow-up to this message ]



    Re: redirecting request on IBM Httpd2  
Sunit Patke


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


 
03-16-06 10:55 PM

For Version 2.0.47 documentation
<VirtualHost>
http://www-306.ibm.com/software/web...tml#virtualhost
RewriteRule
http://www-306.ibm.com/software/web...tml#rewriterule

e.g. (I have not tested this)

<VirtualHost yourserver:80>
RewriteEngine on
RewriteRule ^/(.*) https://your.server.name/$1 [P]
</VirtualHost>

<VirtualHost yourserver:443>
...other config directives
</VirtualHost>

HTH
Sunit

<shedrick.hollaway@navy.mil> wrote in message
news:1135129427.1142534237146.JavaMail.wassrvr@ltsgwas007.sby.ibm.com...
> IHS version is 2.0.47







[ Post a follow-up to this message ]



    Re: redirecting request on IBM Httpd2  


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


 
03-19-06 05:06 PM

> <VirtualHost yourserver:80>
> RewriteEngine on
> RewriteRule ^/(.*) https://your.server.name/$1 [P]
> </VirtualHost>
>
> <VirtualHost yourserver:443>
> ...other config directives
> </VirtualHost>
>
This did help but it leads to an issue with mod_ibm_ssl which I have not fou
nd an answer. This posting should clarify things some.
http://www-128.ibm.com/developerwor...9&q=Proxy#98698
<SNIP>
IHS does not use mod_ssl.so, it has its own SSL implementation using
mod_ibm_ssl.so which does not support the SSLProxyEngine directive.

Actually I would be iterested to know what your (or anyone elses)
requirements are for this functon - i.e. to be able to run SSL to
the backend server for Reverse Proxy configurations:

client --> HTTP --> ReverseProxy --> HTTPS --> Origin Server
or
client --> HTTPS --> ReverseProxy --> HTTPS --> Origin Server
</SNIP>

This is the end scenario I am seeking after.









[ Post a follow-up to this message ]



    Re: redirecting request on IBM Httpd2  


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


 
03-19-06 05:06 PM

This looks to be working.

<VirtualHost *:80>
RewriteEngine on
RewriteRule ^/(.*) https://<hostname>/$1 [R]
</VirtualHost>

<VirtualHost *:443>
SSLEnable
SSLClientAuth None
</VirtualHost>

SSLDisable
KeyFile _path_to_your_keyfile #e.g. /etc/key.kdb
SSLStashfile _path_to_your_pwd_stash #e.g. /etc/key.sth






[ Post a follow-up to this message ]



    Re: redirecting request on IBM Httpd2  
Sunit Patke


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


 
03-21-06 08:45 AM

With WebSphere Application Server we do not use proxy implementation of
Apache bu rather we use WAS plug-in.

Sunit

<shedrick.hollaway@navy.mil> wrote in message
news:1519465230.1142697114182.JavaMail.wassrvr@ltsgwas007.sby.ibm.com... 
> This did help but it leads to an issue with mod_ibm_ssl which I have not
> found an answer. This posting should clarify things some.
> http://www-128.ibm.com/developerwor...9&q=Proxy#98698
> <SNIP>
> IHS does not use mod_ssl.so, it has its own SSL implementation using
> mod_ibm_ssl.so which does not support the SSLProxyEngine directive.
>
> Actually I would be iterested to know what your (or anyone elses)
> requirements are for this functon - i.e. to be able to run SSL to
> the backend server for Reverse Proxy configurations:
>
> client --> HTTP --> ReverseProxy --> HTTPS --> Origin Server
> or
> client --> HTTPS --> ReverseProxy --> HTTPS --> Origin Server
> </SNIP>
>
> This is the end scenario I am seeking after.
>
>
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:10 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