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.

Set 443 as default in Apache Port
#1
Set 443 as default in Apache Port
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
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?
Reply
Thanks given by:
#2
RE: Set 443 as default in Apache Port
apache is in port 80 as the panel remain on port 80.
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#3
RE: Set 443 as default in Apache Port
(09-19-2017, 05:30 PM)Me.B Wrote: apache is in port 80 as the panel remain on port 80.

OK, apache is in port 80 right but I want to set the 443 as default in all website inside my VPS, how do I do that?
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Sentora & Apache behind Nginx Reverse Proxy Feilding Weather 7 15 ,930 08-06-2021, 02:58 PM
Last Post: ccr1969
How to run multiple version PHP with Apache (use Sentora panel) on Centos ??? BigBang 4 9 ,330 12-23-2020, 03:31 PM
Last Post: djkashdui1
SSL install breaks apache service EGOSKY123 1 4 ,576 10-28-2020, 12:12 AM
Last Post: iraqiboy90

Forum Jump:


Users browsing this thread: 1 Guest(s)