NetTalk Central

Author Topic: Conditional SSL  (Read 3931 times)

John Hickey

  • Administrator
  • Newbie
  • *****
  • Posts: 47
    • View Profile
    • Email
Conditional SSL
« on: June 21, 2007, 02:24:25 PM »
I would like to give my customers a choice of running our web app either with SSL or without.  Is that possible?  In the template it looks like it's either on or not, I don't see a way to make it so the end-user can choose.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11155
    • View Profile
Re: Conditional SSL
« Reply #1 on: June 21, 2007, 10:25:57 PM »
Hi John,

See example 8.
Basically you end up with 2 server objects in your Web server procedure, one listening on port 80 (unsecure) and one on port 443 (secure.)

But they share a common WebHandler procedure. So there's almost nothing for you to do except add the extra server object.

tip: if you have static files that must only be served over the secure connection then place them in the 'secure' folder.

tip: if you have pages that should only be viewed on the secure connection then tick on the option on the advanced tab.

Cheers
Bruce