Change webserver port?
-
Is it possible to change the default webserver port to something besides 80? Say, 8080?
-
@DiscoNaut While you surely can mess with the port in the Apache config I am fairly sure this will break some of FOG’s features like wake on LAN, snapins and maybe even PXE booting. Will definitely take some manual adjustments in files in the FOG server to get this somehow working.
What’s your intend in doing this?
-
@sebastian-roth
I ended up doing it. Since we have a monitoring system running on that port.
It did break a lot of stuff. When I reach out to the webserver I get this.
https://localhost:8080/fog/Management<?php
/**- The main index presenter
- PHP version 5
- @category Index_Page
- @package FOGProject
- @author Tom Elliott tommygunsster@gmail.com
- @license http://opensource.org/licenses/gpl-3.0 GPLv3
- @link https://fogproject.org
/
/* - The main index presenter
- @category Index_Page
- @package FOGProject
- @author Tom Elliott tommygunsster@gmail.com
- @license http://opensource.org/licenses/gpl-3.0 GPLv3
- @link https://fogproject.org
*/
require ‘…/commons/base.inc.php’;
$FOGPageManager = FOGCore::getClass(‘FOGPageManager’);
if (session_status() != PHP_SESSION_NONE) {
if (isset($_SESSION[‘delitems’])
&& !in_array($sub, array(‘deletemulti’, ‘deleteconf’))
) {
unset($_SESSION[‘delitems’]);
}
}
FOGCore::getClass(‘ProcessLogin’)->processMainLogin();
require ‘…/commons/text.php’;
$Page = FOGCore::getClass(‘Page’);
$nodes = array(
‘schema’,
‘client’,
‘ipxe’
-
@8dot Well in this case your webserver is not setup to even process the PHP scripts when you access the page on port 8080. I don’t think we can guide you through the whole process of moving FOG to another port.
-
This post is deleted! -
@jjurak Is this something you are actively looking to do?
If yes, do you use the fog client program? If yes that will be the problem. The fog client is hard coded to use port 80. I’ve been asking for a few years to decouple the fog client communication port from the management ui. But there has been other issues that have taken priority.
If you are interested in doing this I can probably give you a few areas to look.