1
sagar
How to run Login page on SSL?
  • 2005/1/23 17:33

  • sagar

  • Just popping in

  • Posts: 14

  • Since: 2004/12/31


Hi,
To secure login details from end users , I need to run my login page on SSL encryption.
Is it possible and if Yes how?



Best Regards,
Sagar

2
nni123
Re: How to run Login page on SSL?
  • 2005/2/2 20:20

  • nni123

  • Just popping in

  • Posts: 17

  • Since: 2004/12/17


Even I had same problem. In my case I have created XOOPS_SURL variable in mainfile.php.

But login works fine but register.php, edituser.php shows errors "Errors None" when you perform registration or edit account operation. If I take out HTTPS and replace with HTTP it works fine.

My configuration

Linux, Apache 1.3*, Php 5.0.3, XOOPS 2.0.9.2..

any core developer can help me. I have more details where it fails during registration process and edit account using SSL.

Thanks

3
christian
Re: How to run Login page on SSL?
  • 2005/2/2 21:06

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


You can look this threads here and here (but in french for the last).

Best regard.

4
jmass
Re: How to run Login page on SSL?
  • 2005/2/2 21:27

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


// In mainfile.php
// change this line
define('XOOPS_URL''https: //www.example.org');

// to the following
$port $HTTP_SERVER_VARS['SERVER_PORT'];
if(
$port == "443"){
  
define('XOOPS_URL''https: //www.example.org');
} else {
  
define('XOOPS_URL''http: //www.example.org');
}


Worked for me.

5
stephenv
Re: How to run Login page on SSL?
  • 2005/3/8 15:36

  • stephenv

  • Just popping in

  • Posts: 14

  • Since: 2005/3/8 1


To avoid problems with internal links/references to the site (like to image files), there should be no space in the URL definitions within mainfile.php, i.e. no space between the "https:" (or "http:") part and the "//www.example.org" part.

== so it should look like this:

$port = $HTTP_SERVER_VARS['SERVER_PORT'];
if($port == "443"){
define('XOOPS_URL', 'https://www.example.org');
} else {
define('XOOPS_URL', 'http://www.example.org');
}

== instead of the original above, which is:

$port = $HTTP_SERVER_VARS['SERVER_PORT'];
if($port == "443"){
define('XOOPS_URL', 'https: //www.example.org');
} else {
define('XOOPS_URL', 'http: //www.example.org');
}

6
Mithrandir
Re: How to run Login page on SSL?

or
define ('XOOPS_URL'$_SERVER['SERVER_PROTOCOL'].'://www.example.org');


If you are going to put the same protocol as is being used by the request, anyway.

7
cordel
Re: How to run Login page on SSL?
  • 2005/3/25 2:00

  • cordel

  • Friend of XOOPS

  • Posts: 6

  • Since: 2005/2/8 6


How about a way to just have the post info in ssl? Or do I have to create a login page and redirect so only the login is in ssl?

8
Antoine
Re: How to run Login page on SSL?
  • 2005/9/7 11:07

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Quote:

Mithrandir wrote:
or
define ('XOOPS_URL'$_SERVER['SERVER_PROTOCOL'].'://www.example.org');


If you are going to put the same protocol as is being used by the request, anyway.


$_SERVER['SERVER_PROTOCOL'].'://www.example.org' yields HTTP/1.1://www.example.org

Not quite usefull.

Login

Who's Online

173 user(s) are online (46 user(s) are browsing Support Forums)


Members: 0


Guests: 173


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits