View previous topic :: View next topic
|
Author |
Message |
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi,
I am trying to convert our IBM HTTP server V5R3 to use https instead of http.
Before the conversion,
httpd.conf has
Code: |
Pass /systems/* /publish/systems/* |
and this would make
Code: |
http://MFSERVER/systems |
map to the USS file
This is ok so far.
Could you please let me know how to redirect all the visits to the link http://MFSERVER/systems to https://MFSERVER/systems automatically.
I looked at the Redirect directive, But I don't know how to use it to route from http to https.
Thanks in advance,
Vasanth.S |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
"redirect http to https" for Google argument will give results that can be useful for you. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Thanks Peter, I did look up the google, but there are specifications for Apache servers or other type of server configurations. I was unable to find anything related to IBM HTTP server.
We could change the HTML of the page to perform the redirect from http to https, but that would mean that we have to change all the individual web pages that we are hosting. |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Thank you Dave, that link is exactly my requirement & it also has a nice solution. However I guess I have to wait until our operating system is upgraded.
The solution on the link was for Apache server and currently we are running only IBM HTTP Server V5R3. We are due to get a Apache server along with z/OS 2.2.
Regards,
Vasanth.S |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Thank you very much Dave,
I installed Apache at our site and your solution here www-01.ibm.com/support/docview.wss?uid=swg21114864 works perfectly.
The only quirk I had to figure out was,
The link asks to add these lines to the config,
Code: |
RewriteEngine on
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L] |
But it came up with error,
Code: |
AH00526: Syntax error on line 916 of /usspath/httpd.conf: RewriteRule: bad flag delimiters |
So converted the lines to EBCDIC037 encoding using SAS
Code: |
%LET FILEIN = WELLS.INPUT;
%LET FILEOUT = WELLS.OUTPUT;
FILENAME OUT "&FILEOUT." DISP=OLD ENCODING= 'EBCDIC037';
FILENAME IN "&FILEIN." DISP=SHR;
DATA _NULL_;
INFILE IN;
INPUT;
FILE OUT;
PUT _INFILE_;
RUN; |
To these cards,
Code: |
RewriteEngine on
RewriteCond %{SERVER_PORT} =80
RewriteRule ¬(.*) https://%{SERVER_NAME}%{REQUEST_URI} ÝR,L¨ |
Then it worked like a charm :-) |
|
Back to top |
|
|
|