Sentora Support Forums
Why do i always have to # out the lisen 443 to get it to work.. - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36)
+---- Thread: Why do i always have to # out the lisen 443 to get it to work.. (/showthread.php?tid=2756)



Why do i always have to # out the lisen 443 to get it to work.. - jeremyotten - 04-08-2016

I have to do this every time when a save vhost config for SSL...

to get it to work again..

why it that..

Code:
When you get an error on starting stating that 443 is already in use vi /etc/sentora/configs/apache/httpd-vhosts.conf put a # before listen 443



RE: Why do i always have to # out the lisen 443 to get it to work.. - Me.B - 04-08-2016

Because it's overwritten each time.

It's written by :

https://github.com/sentora/sentora-core/blob/master/modules/apache_admin/hooks/OnDaemonRun.hook.php

line 91.

Seem you are trying to use the old way to hook ssl using port redirection.

My advice and some may not agree.

Set a new httpd-vhost-ssl.conf and put there your new SSL vhosts ( take care to replicate the default http host config including suhosin). Then include
/etc/sentora/configs/apache/httpd-vhosts-ssl.conf
in main apache config file in centos /etc/httpd/apache

That how I do for my SSL websites.


RE: Why do i always have to # out the lisen 443 to get it to work.. - jeremyotten - 04-08-2016

(04-08-2016, 10:28 PM)Me.B Wrote: Because it's overwritten each time.

It's written by :

https://github.com/sentora/sentora-core/blob/master/modules/apache_admin/hooks/OnDaemonRun.hook.php

line 91.

Seem you are trying to use the old way to hook ssl using port redirection.

My advice and some may not agree.

Set a new httpd-vhost-ssl.conf and put there your new SSL vhosts ( take care to replicate the default http host config including suhosin). Then include
/etc/sentora/configs/apache/httpd-vhosts-ssl.conf
in main apache config file in centos /etc/httpd/apache

That how I do for my SSL websites.

i am looking for a solution using the gui..


RE: Why do i always have to # out the lisen 443 to get it to work.. - TGates - 04-10-2016

Module Admin > Apache Config > Override A Virtual Host > [Select Domain] > Port Override & forward port 80 to override port


RE: Why do i always have to # out the lisen 443 to get it to work.. - jeremyotten - 04-11-2016

that is what i did.. and that is also what causes the error and why i need to edit that file to get it fixed..


RE: Why do i always have to # out the lisen 443 to get it to work.. - bbspike - 04-11-2016

(04-11-2016, 05:04 AM)jeremyotten Wrote: that is what i did.. and that is also what causes the error and why i need to edit that file to get it fixed..

You probaly have the listen line somewhere else on you httpd config. Check /etc/httpd directory if there is a config file with the listen line. Comment that one out.