Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st November 2009, 05:34 PM
sieger007 Offline
Registered User
 
Join Date: Oct 2009
Posts: 20
linuxfedorafirefox
Arrow Apache on F11. ANY APPROACH ?excluding images pdfs etc from Https ( ssl ) routi

Hi Folks
I am a squat on advanced Apache work. I would get a basic SSL functionality to work.
So https://foobar.com works fine and gets me all the login windows I designed. however currently all the images and other extensions like .pdf are also using the https routing.
some image referred on that https link
e.g. https://foobar.com/loginhere.jpeg c
can be displayed using https but not http
I would like to JUST limit https usage to the login window html and ALL other images pdf's not secured html ( one that do not need password ) should use HTTP NOT HTTPS
any idea how that is done ?
Reply With Quote
  #2  
Old 1st November 2009, 11:49 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,090
linuxfedorafirefox
That should depend on the URL for those images.

If the URL is something like <img src="file.jpeg"> then the browser will fill in
the missing parts from the current URL reference. If the page was reached by
"https://foobar.com/loginhere" then the URL for the image will be "https://foobar.com/file.jpeg".

If you ARE referencing them by "http://foobar.com/file.jpeg" and it isn't working, that
may be caused by the apache configuration. It MUST be listening to both port
443 and 80 at the same time.

Can you retrieve your images with "http://foobar.com/file.jpeg" ?
Reply With Quote
  #3  
Old 1st November 2009, 11:56 PM
sieger007 Offline
Registered User
 
Join Date: Oct 2009
Posts: 20
linuxfedorafirefox
Arrow

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 .

<> 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

Last edited by sieger007; 1st November 2009 at 11:59 PM. Reason: add more info
Reply With Quote
  #4  
Old 2nd November 2009, 06:58 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,090
linuxfedorafirefox
Quote:
Originally Posted by sieger007 View Post
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.
Reply With Quote
  #5  
Old 2nd November 2009, 08:07 PM
sieger007 Offline
Registered User
 
Join Date: Oct 2009
Posts: 20
windows_vistafirefox
Thanks
I guess what I was trying to do was avoid unnecessary traffic going via SSL i.e. images etc, but in the end unless its done at the level of code ( change the actual link to http) , it is not worth it, you are right. Server re-direction is catching the left ear with the right hand.
I have to check the iptables to see if 80 is blocked.
Many thanks again
sam
Reply With Quote
  #6  
Old 2nd November 2009, 08:12 PM
sej7278 Offline
Registered User
 
Join Date: Sep 2004
Posts: 2,008
unknownunknown
also note that if you have an ssl page with http images on you'll get a warning in your browser.
Reply With Quote
  #7  
Old 2nd November 2009, 08:25 PM
sieger007 Offline
Registered User
 
Join Date: Oct 2009
Posts: 20
windows_vistafirefox
yes another reason why you would prefer to go all SSL or all No SSL , rather than mixed.
Yahoo use to have their mail login isolated from images and it threw those mixed env. messages.
They've gotten rid of it and gone all SSL .
Reply With Quote
Reply

Tags
apache, approach, excluding, f11, https, images, pdfs, routi, ssl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Evince Not Saving Pdfs Properly (But Pdfs Readable in Windows' Acroread) Boricua Using Fedora 1 30th September 2008 04:56 PM
Apache HTTPS maz3mike Servers & Networking 5 11th June 2008 05:26 AM
Apache HTTPS johntp Servers & Networking 8 4th January 2007 08:33 PM
How to use only HTTPS on Apache 2? cviniciusm Servers & Networking 3 31st July 2006 11:15 PM


Current GMT-time: 14:15 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat