Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 00:27:49

Author Topic: Redirect https://IP:7778 to https://IP:7777  (Read 3617 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Redirect https://IP:7778 to https://IP:7777
« on: 2014-12-19, 13:28:15 »
It should be done too - some customers have troubles with that ;)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Redirect https://IP:7778 to https://IP:7777
« Reply #1 on: 2014-12-19, 14:20:43 »
Copy '/usr/local/lxlabs/kloxo/httpdocs/login/inc2.php' to 'custom-inc2.php' and add at above:
Code: [Select]
<?php
if(
$_SERVER["HTTPS"] != "on") {
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://" $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"] . ":7777");
exit();
}
?>
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Redirect https://IP:7778 to https://IP:7777
« Reply #2 on: 2014-12-22, 05:19:42 »
Still does not work:

https://domain.com:7778/

Is it ok ?

Quote
total 40K
-rw-r--r-- 1 lxlabs lxlabs 5.3K Feb  3  2014 custom-inc2.php
-rw-r--r-- 1 lxlabs lxlabs 2.9K Oct 28 12:14 custom-index.php
drwxr-xr-x 2 lxlabs lxlabs 4.0K Apr 10  2014 images
-rw-r--r-- 1 lxlabs lxlabs  721 Dec 22 06:05 inc2.php
-rw-r--r-- 1 lxlabs lxlabs 5.3K Dec 22 06:05 inc.php
-rw-r--r-- 1 lxlabs lxlabs 2.3K Oct 23 23:47 index.html
-rw-r--r-- 1 lxlabs lxlabs 3.1K Dec 22 06:05 index.php
-rw-r--r-- 1 lxlabs lxlabs   26 Nov 21 04:43 PLACE_HOLDER
-rw-r--r-- 1 lxlabs lxlabs    0 Dec 22 12:17 redirect-to-ssl

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Redirect https://IP:7778 to https://IP:7777
« Reply #3 on: 2014-12-22, 05:23:46 »
If you update to latest version, you don't need custom-* files. Just enough 'redirect ...' in 'port configure'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Redirect https://IP:7778 to https://IP:7777
« Reply #4 on: 2014-12-22, 05:24:52 »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Redirect https://IP:7778 to https://IP:7777
« Reply #5 on: 2014-12-22, 05:56:36 »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Redirect https://IP:7778 to https://IP:7777
« Reply #6 on: 2014-12-22, 06:06:55 »
Impossible http and https with the same port.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Redirect https://IP:7778 to https://IP:7777
« Reply #7 on: 2014-12-22, 11:34:37 »
Impossible http and https with the same port.

OK

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.041 seconds with 19 queries.

web stats analysis