Solved

Apache and SSL, basic question

Posted on 2006-06-09
6
210 Views
Last Modified: 2010-03-04
I am building a website using PHP and its going to live on an Apache server. There are certain parts of the site that are just content, they don't need to be secure but there are a few pages like the login and settings pages that I'd like to be secure. I've heard about SSL and I was wondering. How does it work? Do I need to add special code to my PHP code or is it something that I just do on the server.

For example, say my source file is login.php, how do I just tell Apache to use SSL on that? Sorry if this is a pretty basic and newbie question but I am lost when it comes to this sort of stuff.
0
Comment
Question by:Linky
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 15

Accepted Solution

by:
periwinkle earned 125 total points
ID: 16870749
Assuming that you have SSL set up on your server, with a certificate, etc., to access via SSL is simply a matter of changing the url from:

http://www.yourdomain.com/login.php

to

https://www.yourdomain.com/login.php

(i.e. from http:// protocol to https:// protocol).
0
 
LVL 2

Author Comment

by:Linky
ID: 16871131
then what is stopping people from just typing http instead of https
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 16871485
Nothing, unless you code preventatively!
0
Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

 
LVL 2

Author Comment

by:Linky
ID: 16871801
And how can that be done, so that even if they type http://whatever it will use SSL anyway. I'm using PHP but I doubt that matters since this is mainly dealing with the server.
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 16872296
It won't - unless you redirect the http:// request to a https:// request.  But from what you have said, you're only having a few pages that are ssl - if you LINK to them as https:// then they'll be secure!
0
 
LVL 2

Author Comment

by:Linky
ID: 16885108
Sounds good, thanks for the help.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

738 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