Set 443 as default in Apache Port
09-19-2017, 10:43 AM
(This post was last modified: 09-19-2017, 10:44 AM by ickie1593.)
Hi. my Website are all run in SSL thru cloudflare. I also save all certificate files over /etc/apache2/ssl. I already setup the Sentora Apache Port from 80 to 443. In the Apache Config, I also add the code below into Global Sentora Entry but the Apache Port was still in 80
After this all set, I also add the code below into Virtual Host with Overrides
After this set, I run
to reboot the apache service over my VPS to establish the new connection and settings. I think it is enough to run my website into SSL mode and I am wondering why the port of apache is still in 80.
My question regarding to this is how can I set the Apache Port into 443 and set this as default in all domain and subdomain?
Code:
##################################################
# Apache VHOST configuration file
# Customised entries for Sentora
##################################################
# Configuration for Sentora control panel.
SSLEngine on
SSLProtocol SSLv3
SSLCertificateFile /etc/apache2/ssl/leowebhost.cf.pem
SSLCertificateKeyFile /etc/apache2/ssl/leowebhost.cf.key
ServerAdmin support@leowebhost.cf
DocumentRoot "/etc/sentora/panel/"
ServerName leowebhost.cf
ServerAlias manage.leowebhost.cf
After this all set, I also add the code below into Virtual Host with Overrides
Code:
</VirtualHost>
# Configuration for SSL - https://panel.yoursite.tld
<VirtualHost *:80>
ServerAdmin support@leowebhost.cf
DocumentRoot "/etc/sentora/panel/"
ServerName manage.leowebhost.cf
AddType application/x-httpd-php .php3 .php
<Directory />
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
After this set, I run
Code:
php -q /etc/sentora/panel/bin/daemon.php
service apache2 restart
to reboot the apache service over my VPS to establish the new connection and settings. I think it is enough to run my website into SSL mode and I am wondering why the port of apache is still in 80.
My question regarding to this is how can I set the Apache Port into 443 and set this as default in all domain and subdomain?