Sentora Support Forums

Full Version: Cant access after SSL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys.
I installed ssl for my domain and its working now. ( https://freenettr.com/ )
But after ssl, my control panel is not working. ( http://212.47.234.120/ )
I installed ssl with THIS way.
And my httpd-vhosts.conf is;

Code:
################################################################ # Apache VHOST configuration file # Automatically generated by Sentora 1.0.3 # Generated on: 20:55 5th Aug 2016 EEST #==== YOU MUST NOT EDIT THIS FILE : IT WILL BE OVERWRITTEN ==== # Use Sentora Menu -> Admin -> Module Admin -> Apache config ################################################################ Listen 80 Listen 443 # Configuration for Sentora control panel. <VirtualHost *:80> ServerAdmin zadmin@localhost DocumentRoot "/etc/sentora/panel/" ServerName panel ErrorLog "/var/sentora/logs/sentora-error.log" CustomLog "/var/sentora/logs/sentora-access.log" combined CustomLog "/var/sentora/logs/sentora-bandwidth.log" common AddType application/x-httpd-php .php <Directory "/etc/sentora/panel/"> Options +FollowSymLinks -Indexes    AllowOverride All    Require all granted </Directory> # Custom settings are loaded below this line (if any exist) ################################################## # Apache VHOST configuration file # Customised entries for Sentora ################################################## NameVirtualHost *:443 # Configuration for Sentora control panel. SSLEngine on SSLProtocol SSLv3 SSLCertificateFile /etc/apache2/ssl/Sentora.crt SSLCertificateKeyFile /etc/apache2/ssl/Sentora.key ServerAdmin zadmin@localhost DocumentRoot "/etc/Sentora/panel/" ServerName id-network.org ServerAlias Sentora.id-network.org Redirect Permanent / https://Sentora.id-network.org/ </VirtualHost> ################################################################ # Sentora generated VHOST configurations below..... ################################################################ # DOMAIN: freenettr.com <virtualhost *:443> ServerName freenettr.com ServerAlias  www.freenettr.com ServerAdmin zadmin@localhost DocumentRoot "/var/sentora/hostdata/zadmin/public_html/freenettr_com" php_admin_value open_basedir "/var/sentora/hostdata/zadmin/public_html/freenettr_com:/var/sentora/temp/" php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec" ErrorLog "/var/sentora/logs/domains/zadmin/freenettr.com-error.log" CustomLog "/var/sentora/logs/domains/zadmin/freenettr.com-access.log" combined CustomLog "/var/sentora/logs/domains/zadmin/freenettr.com-bandwidth.log" common <Directory "/var/sentora/hostdata/zadmin/public_html/freenettr_com">  Options +FollowSymLinks -Indexes  AllowOverride All  Require all granted </Directory> AddType application/x-httpd-php .php3 .php ErrorDocument 404 /_errorpages/404.html ErrorDocument 403 /_errorpages/403.html ErrorDocument 500 /_errorpages/500.html ErrorDocument 510 /_errorpages/510.html DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm # Custom Global Settings (if any exist) # Custom VH settings (if any exist) SSLEngine on SSLCertificateFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.crt SSLCertificateKeyFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.key SSLCACertificateFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.ca-bundle </virtualhost> # END DOMAIN: freenettr.com ################################################################ # DOMAIN: freenettr.com # PORT FORWARD FROM 80 TO: 443 <virtualhost *:80> ServerName freenettr.com ServerAlias www.freenettr.com ServerAdmin zadmin@localhost RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] </virtualhost> # END DOMAIN: freenettr.com


What is the problem? Thanks.
First off, you should be accessing your panel using a sub-domain, not by IP. Also, if I try https://212.47.234.120/ it goes to your hosting space instead of panel login.

Also I noticed you did not properly update the file paths for your SSL certificates:


Code:
SSLCertificateFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.crt SSLCertificateKeyFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.key SSLCACertificateFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.ca-bundle

It still says 'billing_domain_tld' and the certificate names also...
(08-06-2016, 05:17 AM)TGates Wrote: [ -> ]First off, you should be accessing your panel using a sub-domain, not by IP. Also, if I try https://212.47.234.120/ it goes to your hosting space instead of panel login.

Also I noticed you did not properly update the file paths for your SSL certificates:


Code:
SSLCertificateFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.crt SSLCertificateKeyFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.key SSLCACertificateFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.ca-bundle

It still says 'billing_domain_tld' and the certificate names also...

Thanks for answer TGates. My sentora panel subdomain is panel. (panel.freenettr.com)
But its not opening properly.I added A record but its not fix.
I changed ssl paths;

Code:
SSLCertificateFile /var/sentora/hostdata/zadmin/ssl_certs/freenettr_com/freenettr_com.crt SSLCertificateKeyFile /var/sentora/hostdata/zadmin/ssl_certs/freenettr_com/freenettr_com.key SSLCACertificateFile /var/sentora/hostdata/zadmin/ssl_certs/freenettr_com/freenettr_com.ca-bundle

Is this right? I Am Very Confused About SSL.I cant access to my panel.What can i do for fixing this? Can you help please?
(08-06-2016, 07:05 AM)diamondhead Wrote: [ -> ]
(08-06-2016, 05:17 AM)TGates Wrote: [ -> ]First off, you should be accessing your panel using a sub-domain, not by IP. Also, if I try https://212.47.234.120/ it goes to your hosting space instead of panel login.

Also I noticed you did not properly update the file paths for your SSL certificates:


Code:
SSLCertificateFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.crt SSLCertificateKeyFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.key SSLCACertificateFile /var/sentora/hostdata/zadmin/ssl_certs/billing_domain_tld/certificate.ca-bundle

It still says 'billing_domain_tld' and the certificate names also...

Thanks for answer TGates. My sentora panel subdomain is panel. (panel.freenettr.com)
But its not opening properly.I added A record but its not fix.
I changed ssl paths;

Code:
SSLCertificateFile /var/sentora/hostdata/zadmin/ssl_certs/freenettr_com/freenettr_com.crt SSLCertificateKeyFile /var/sentora/hostdata/zadmin/ssl_certs/freenettr_com/freenettr_com.key SSLCACertificateFile /var/sentora/hostdata/zadmin/ssl_certs/freenettr_com/freenettr_com.ca-bundle

Is this right? I Am Very Confused About SSL.I cant access to my panel.What can i do for fixing this? Can you help please?

Friend, you can make a search in the forum, while several tutorials explaining.
http://panel.freenettr.com/ shows me your panel login working just fine.
https://panel.freenettr.com/ shows me an SSL error. (Insecure connection: certificate is for freenettr.com)
https://freenettr.com/ shows me your website.
http://freenettr.com/ redirects and shows me your https website also.
http://212.47.234.120/ now points to your panel login.

All seem to be working OK using your current setup.