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.

https without certificate redirects to panel
#1
[Not Solved] https without certificate redirects to panel
Hello

I've seen this issue before but I somehow forgot about it or ignored it. Now when testing again, this issue popped up again, but this is not a configuration issue by me, I think.

So, I have certbot and multiple domains with SSL configured and they work fine. Both https and http redirects normally to the https domain itself.
but
a domain without a certificate and no ssl-related configuration works fine with http and redirects to the domain, BUT, when adding https to the same domain, it redirects to the sentora panel instead after the browser warns of a non-trusted self signed certificate.

Why? How can I diagnose this?

Regards
iraqiboy90
Reply
Thanks given by:
#2
[Not Solved] RE: https without certificate redirects to panel
bump?
Reply
Thanks given by:
#3
[Not Solved] RE: https without certificate redirects to panel
Any support on this one please?
Reply
Thanks given by:
#4
[Not Solved] RE: https without certificate redirects to panel
Without seeing the conf file we can't help.

Please avoid DM for support. You will be ignored next time.
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS

Reply
Thanks given by:
#5
[Not Solved] RE: https without certificate redirects to panel
Thanks for the reply.
(04-22-2020, 12:02 AM)Me.B Wrote: Please avoid DM for support. You will be ignored next time.
I will avoid it next time

Here are the two apache conf files within sentora config folder:

httpd.conf
Code:
# Sentora Apache Include file
# Written by Bobby Allen, 15/05/2011

# Set the Sentora Alias (used for development, sable will eventually use a VHOST)
#Alias /Sentora /etc/sentora/panel

# Set a default server name for the master configuration to supress Apache daemon warnings
ServerName localhost

# Setup the directory settings and PHP security flags for the Sentora application directory.
<Directory /etc/sentora/panel>
   Options +FollowSymLinks
   DirectoryIndex index.php
   <IfModule mod_php5.c>
       AddType application/x-httpd-php .php
       php_flag magic_quotes_gpc Off
       php_flag track_vars On
       php_flag register_globals Off
       php_admin_value upload_tmp_dir /var/sentora/temp
   </IfModule>
</Directory>

# Disallow web access to directories that don't need it/that we don't want people looking in!
<Directory /etc/sentora/panel/cnf/>
   Require all denied
</Directory>
<Directory /etc/sentora/panel/modules/*/hooks>
   Require all denied
</Directory>

# Set server tokens
ServerTokens Prod

# Now we include the generic VHOST configuration file that holds all Sentora user hosted vhost data
Include /etc/sentora/configs/apache/httpd-vhosts.conf

And this is the httpd-vhosts.conf (too long to be pasted here)
Code:
https://pastebin.com/f2PvQJZv

The problem happens with domain delta.no. Since this is the only domain I can test that does not have a SSL configuration on. I'm connecting to it by changing the windows host file to direct the domain to the IP of the server this conf file is located at, because it's actually located somewhere else with DNS.

Domain names has been changed for what I assume can be a slightly privacy improvement, since this is a public forum Smile
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
PLZ Help me install ssl in my own VPS Centos7 Sentora panel younessesoft 1 210 05-26-2020, 07:34 PM
Last Post: 5050
Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server dsmarter 14 17 045 03-03-2020, 06:37 PM
Last Post: Sanam Preetkaur
Sentora panel yeneb 1 1 136 10-05-2019, 08:51 PM
Last Post: Ron-e

Forum Jump:


Users browsing this thread: 1 Guest(s)