Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
switching to https?
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2021-06-26 14:55:14
what changes need to be made for that to work? And then what happens to all torrents before the switch is made? I assume they wouldnt work unless there was a fallback right? Do I just edit the config to reflect the URL, or...
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2021-06-26 17:18:55
Preferably you want UDP protocol prefix set up, while it’s very fast. SSL is heavy on the CPU so maybe 100s of clients are sending requests to that it may slow down..
2021-06-27 06:37:41
for https you can just change the config url

with https sometimes you can use http or https unless you force it on the ht.access - with old torrents you can make a exception for announce.php on the ht.access so you would have
http.announce  and then
the new https.announce  one

all other visits would be forced https.
You can visit here with http or https if you want to try, i dont force it on the github project but all the links point to https through the config setting if on browser = right click inspect your account button :thumb

From what i remember you can get some errors if you right click on browser - inspect page in console you can get a few errors that a path is not correct this will be scripts or css thats called in header/footer,  like if the jquery link is http just switch them to https aswell - if you get a page but no style that will be the issue mate.
Last edited by M-jay warn on 2021-06-27 06:45:15
2021-06-27 16:25:39
Much better to just assign a global variable that has conditions to switch in and out of HTTP/HTTPS prefix. So all of the resource links and references are all handled automatically.
2021-06-27 19:04:57
It's strange that https works without problems with Chrome but not with Firefox and Safari. Tried to fix it via ht.access but still no success


<IfModule mod_rewrite.c>
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>



RewriteEngine On

### WWW & HTTPS

# ensure www.
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ensure https
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

### WWW & HTTPS


If user is not logged in https works but if user is logged in https won't work     :devil


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2021-06-29 12:31:25
In my vps / hestiacp / php 7.1 mariadb 10.33 .... https auto redirect from hestia cp in backend where you add your website link add it with https and it will stay and redirect to that always , no problems for me
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728