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.

Problem after setting um SSL
#1
Problem after setting um SSL
Good afternoon,
Im new to Sentora and i wanted to try this panel on my VPS for some private sites i need to host, for years i have just runned a clean install of debian with apache2 php mysql and etc. but now i wanted to have a nice panel so i could let some other use the server without me always manually setting up all services.

I did install the panel and everything worked good. then i did setup Let´s encrypt ssl service for both my Panel and for the domains i host and that works all very well. 

the only problem i have its not like sentora is forwarding to port 443 if i do enter domain.com in the browser it will show "This site can’t be reached domain.com refused to connect."

but if i do enter myself https://domain.com it dose work fine.

Code:
################################################################
# Apache VHOST configuration file
# Automatically generated by Sentora 1.0.3
# Generated on: 14:10 19th Jun 2017 UTC
#==== YOU MUST NOT EDIT THIS FILE : IT WILL BE OVERWRITTEN ====
# Use Sentora Menu -> Admin -> Module Admin -> Apache config
################################################################

Listen 443

# Configuration for Sentora control panel.
<VirtualHost *:443>
ServerAdmin MYEMAIL
DocumentRoot "/etc/sentora/panel/"
ServerName panel.domain.com
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)
SSLEngine on
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /etc/letsencrypt/live/**************/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/**************/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/**************/chain.pem
# Keeping bellow for future upgrades.
# Requires Apache >= 2.4
SSLCompression off
</VirtualHost>

################################################################
# Sentora generated VHOST configurations below.....
################################################################

# DOMAIN: domain.com
<virtualhost *:443>
ServerName domain.com
ServerAlias  www.domain.com
ServerAdmin MYEMAIL
DocumentRoot "/var/sentora/hostdata/vefmynduser/public_html/vefmynd_net"
php_admin_value open_basedir "/var/sentora/hostdata/vefmynduser/public_html/vefmynd_net:/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/vefmynduser/domain.com-error.log"
CustomLog "/var/sentora/logs/domains/vefmynduser/domain.com-access.log" combined
CustomLog "/var/sentora/logs/domains/vefmynduser/domain.com-bandwidth.log" common
<Directory "/var/sentora/hostdata/vefmynduser/public_html/vefmynd_net">
 Options +FollowSymLinks -Indexes
 AllowOverride All
 Require all granted
</Directory>
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

SSLProtocol ALL -SSLv2 -SSLv3

SSLHonorCipherOrder On

SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS

SSLCertificateFile /etc/letsencrypt/live/domain.com/cert.pem

SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem

SSLCertificateChainFile /etc/letsencrypt/live/domain.com/chain.pem

# Keeping bellow for future upgrades.

# Requires Apache >= 2.4

SSLCompression off



</virtualhost>
# END DOMAIN: domain.com
################################################################



# DOMAIN: domain.com
# PORT FORWARD FROM 80 TO: 443
<virtualhost *:80>
ServerName domain.com
ServerAlias www.domain.com
ServerAdmin MYEMAIL
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</virtualhost>
# END DOMAIN: domain.com
Reply
Thanks given by:
#2
RE: Problem after setting um SSL
I think you selected the wrong port to change (Apache service port) instead of Sentora login port.
Your apache is only listening on port 443, and not both 443 and 80

Code:
Listen 443
When it should be:
Code:
Listen 443
Listen 80

On command line as root user:
Code:
setso --set apache_port 80
setso --set sentora_port 443
setso --set apache_changed true

Wait for the daemon to run and re-write the httpd-vhosts file (~5mins).
-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: Problem after setting um SSL
Hello TGates and thanks for your help, i did try to add Listen 80 the config and everything worked after that.

Super thanks
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
xBilling [MODULE] [PROBLEM] slaserx 7 23 ,456 12-13-2017, 09:46 AM
Last Post: liamgibbins
Problem with filemanager module gua8x 6 17 ,224 09-04-2017, 02:17 AM
Last Post: betatester3.0
xBilling variables problem and vouches seenko 21 64 ,949 11-30-2016, 01:05 PM
Last Post: cam246

Forum Jump:


Users browsing this thread: 1 Guest(s)