This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Sentora Panel Redirecting To Hosted Site When Not Using SSL/HTTPS
#1
Sentora Panel Redirecting To Hosted Site When Not Using SSL/HTTPS
Basically I found this thread which this user is experiecing the exact same problem I am right now, basically word for word (and config for config).

http://forums.sentora.org/showthread.php?tid=2721

It was never resolved.

The problem, in short, is I installed a LetsEncrypt SSL certificate for the control panel and HTTPS/SSL works fine. But when I attempt to connect to the panel without SSL and just specify HTTP, it redirects to a hosted site (the first one that was created on the server).

I have made the adjustments recommend on the SSL Installation guide, as well as added the following to the top of my /etc/sentora/panel/.htaccess file

Code:
# Force SSL - Always first!
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

But it's still redirecting to the hosted site.
Reply
Thanks given by:
#2
RE: Sentora Panel Redirecting To Hosted Site When Not Using SSL/HTTPS
Did you remember to add:

Code:
</virtualhost>
# PORT FORWARD FROM 80 TO: 443
<virtualhost *:80>
ServerName panel.domain.com
ServerAdmin webmaster@domain.com
Redirect permanent / https://panel.domain.com/

to the end of the Global Sentora Entry? (Admin > Module Admin > Apache Config)
(Change panel.domain.com to your panel login FQDN)
This should also remove the need of using the .htaccess additions.
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#3
RE: Sentora Panel Redirecting To Hosted Site When Not Using SSL/HTTPS
That did it, thank you very much! I didn't see that mentioned in the thread I linked or in the documentation for the LetsEncrypt SSL. Do you think it would be worth adding on the documentation here: http://docs.sentora.org/?node=102

Either way, thanks again.
Reply
Thanks given by:
#4
RE: Sentora Panel Redirecting To Hosted Site When Not Using SSL/HTTPS
Actually I take back what I said. This has caused my other site that was running SSL without issue to now be broken. Either this software does not work well with SSL or the documentation is missing vital pieces to it.
Reply
Thanks given by:
#5
RE: Sentora Panel Redirecting To Hosted Site When Not Using SSL/HTTPS
PM me your httpd-vhosts.conf and I'll take a look.
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Is Sentora dead? rajeevrrs 2 3 ,969 12-17-2022, 09:20 AM
Last Post: TGates
Sentora debug and error files johnnyp 0 1 ,589 10-27-2022, 06:16 PM
Last Post: johnnyp
Transfer Account to another Sentora BenI 1 3 ,332 07-21-2022, 07:19 PM
Last Post: Nigel

Forum Jump:


Users browsing this thread: 1 Guest(s)