Solved

IHS https redirect on Windows 2008?

Posted on 2011-02-22
3
797 Views
Last Modified: 2012-06-27
Hello.  I have implemented a suggestion I saw with regards to redirecting http to https traffic on my IHS/Windows/Websphere7 server.  

In the httpd.conf file, I added:
RewriteEngine on
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}

and it redirected my hosts from using the dmz ip's to use secure pages.  However, this code does not seem to work when the Coyote ip-sprayer (my understanding of the appliance in front) is in the mix.   I get timeout errors, when using the external address.

Any feedback on the syntax? do I have it correct, or should I have the network tech look further at the Coyote appliance?  Thanks in advance for your help!

sharon
0
Comment
Question by:bongios
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
BigRat earned 250 total points
ID: 34959427
The syntax is correct.

I suspect that the problem lies in the resolution of the name to an I/P address. Apache seems to put in it's redirects as "Location" the fixed I/P address rather than the acutal name, so instead of seeing "Location: www.mycorp.com" one sees "Location: 215.123.123.42". If then somebody rotates names to I/P addresses there is then a problem.

I'd take your server name and it's I/P address and do DNS lookups both internet and intranet wise, just to be certain that the anmes and addresses belong to each other.

I have no idea what a "coyote ip sprayer" is (although I can guess) so being a little more specific about it might help?
0
 

Author Comment

by:bongios
ID: 34961810
Thanks for your feedback.  After implementing a RedirectMatch directive (which worked on DMZ, but again, not with Coyote) I realized it was the network device doing something.

At this point, the network tech is taking on the task of providing urlrewrite and redirection, so I don't need to do anything further. I think.

Thanks for confirming the syntax!
sharon
0
 

Author Closing Comment

by:bongios
ID: 34961867
coyote seemed to be the issue.  BigRat confirmed my syntax was correct, which was helpful.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now