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.
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