Use sentora panel with specific port for all domains (Like cPanel, da e.g)
#1
Use sentora panel with specific port for all domains (Like cPanel, da e.g)
Hello,
First thank you on sentora system panel.

Now I will show you how to use & configure sentora panel on port from all domains

Example:
panel.domain.com
domain.com:2352
clientdomain.com:2352

You can choose the port number you want to use.

ok, let start:
  1. Edit httpd-vhost.file (/etc/sentora/configs/apache/httpd-vhosts.conf).
  2. Add listen after exist listen. (Listen 2352 or any number you want!).
  3. change sentora vhost port (2352 or any number you want!).

In first vhost you will see the panel.domain.com config.
It should look like this:
Code:
# Configuration for Sentora control panel. <VirtualHost *:80> ServerAdmin name@domain.com 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)
[/code]

So we will edit line <VirtualHost *:80> to <VirtualHost *:port>
For example <VirtualHost *:2352>

Restart apache! (service httpd restart / service apache restart / service httpd restart).

Enjoy! Big Grin
Reply
#2
RE: Use sentora panel with specific port for all domains (Like cPanel, da e.g)
Issent the httpd-vhosts.conf file being (re)created by Sentora, so all edits will be lost?

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
#3
RE: Use sentora panel with specific port for all domains (Like cPanel, da e.g)
(07-30-2015, 02:31 PM)Ron-e Wrote: Issent the httpd-vhosts.conf file being (re)created by Sentora, so all edits will be lost?

I believe it will not be replaced by default.
I've changed my port to 443 (SSL) and it is working.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Secure Sentora Domains with Let's Encrypt TGates 27 109 ,420 06-08-2024, 05:06 PM
Last Post: andykimpe
Secure Sentora With SSLForFree Chris L 1 6 ,486 01-22-2020, 09:19 PM
Last Post: ralphharder
Fail2ban for Sentora (Centos 7) bbspike 14 55 ,679 01-14-2020, 07:32 AM
Last Post: Vedran B

Forum Jump:


Users browsing this thread: 1 Guest(s)