Forum Moderators: phranque

Message Too Old, No Replies

Arrow general - Apache on Fedora. ANY THOUGHTS ?excluding images pdf

apache redirect https rewrite mod_ssl ssl SSL SSH mixed

         

sieger007

10:57 pm on Nov 1, 2009 (gmt 0)

10+ Year Member



I am a squat on advanced Apache work. I would get a basic SSL functionality to work.
So an https extention ( https : // someurl ), 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 : // <some url . jpeg>
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 ?

jdMorgan

5:12 pm on Nov 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure I understand your question, since objects included on your https pages and other pages linked-to by your https pages will be referenced using the URLs you specify. So you can link to them using https or using http, as appropriate.

If you set the DocumentRoot for both http and https to the same directory filespace, then you can refer to these pages and objects using either protocol. Then only two things are required for a 'clean' setup: Be sure that you link correctly (all objects included on an https page must be accessed using https, and links to non-secure pages from your secure pages should specify http, not https), and then use a small code snippet (e.g. mod_rewrite or some PHP included in your pages) to redirect any 'page' URL requests using https back to http, except for the secure login page's URL.

I hope that's what you were asking about...

Jim