Quote:
Originally Posted by sieger007
Thanks for the very sensible troubleshooting.
<> I cannot see http : // foobar.jpeg but https : // foobar.jpeg will work
What I cannot really find ( and Apache modules make a graduate course , as I am realizing with all the futile digging in ) is HOW do I tell apache that if you find an image file ( .jpeg or .pdf ) if it comes to https convert all that into http .Has that something to do with rewrite or redirect modules .
|
You can't. The browser is the one doing the interpretation. Using a redirect/rewrite rules will only slow the process down by requiring two
browser <=> server cycles instead of one.
Quote:
<> Another thing is that http : // foobar.login.html should redirect to https : // foobar.login.html
however http : // foobar.login.html will not show up at all. How do I achieve this .
Thanks again
Sam
|
The redirect you are looking for is "location" and that is returned by the
server. I've not used that (except from a CGI) so I'm not sure how to
specify that in a static file.
The fact that "http :// foobar.login.html" will not show up indicates that
apache is NOT listening to port 80.
What may have happened is that you unintentionally disabled port 80
when you enabled SSL.
You may have to use a named virtual host assigned to port 80
to enable the unsecured communication. This will also require you to
define separate storage areas for the secure (HTTPS) and unsecure
(http) data. I haven't run both at the same time since v1.2 of apache,
so I'm not absolutely certain, but that is what the directions in the
/etc/httpd/conf/httpd.conf file appear to mean.