Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Set up SSL on your webserver with the same cgi-bin path as used for your normal setup, and then update all the links to that page to begin with https. Though, if you're doing shopping-type transactions, make sure all the pages involved in the entire transaction are secured via SSL.
The problem is that if I setup SSL in order to use HTTPS the whole site is using HTTPS. That is not what I need. I need advice how to setup SSL so as to use SSL ONLY when needed.
Example goto southwestairlines.com and book a flight. Until you get to purchase screen you are on http. That is what I need http until get to purchase then use HTTPS.
I need to have an HTTPS and HTTP mixed environment.Where HTTPS is used when called.
Also I used this rewrite to go from http to https when needed:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^reservations.plx(.*) https://%{SERVER_NAME}/cgi-bin/cawebsite/reservations.plx$1 [R,L]
Above rewrite is located in my /etc/apache2.conf
I used: (self-signed cert temporary), after enabling SSL mod using a2enmod ssl
SSLEngine on
SSLCertificateFile /etc/apache2/server.crt
SSLCertificateKeyFile /etc/apache2/server.key
But that is global(used in apache2.conf as while)
Last edited by Carl Filby; 10-07-2008 at 08:10 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.