A built-in web-server is automatically set up for software products based on COREmanager.
The built-in web-server automatically listens to port 1500 of the main IP address (both IPv4 and IPv6).
You can configure the web-server to listen to certain IP addresses and ports either through the command line or the configuration file.
If you specify settings in the configuration file, the configuration parameters that were specified in the command line will be ignored.
When starting the web-server you can specify a specific IP address and port to listen. For more information about this function start the web-server using the -h key.
For more flexible configuration of your built-in web-server, you can use the file etc/ihttpd.conf of a COREmanager 5-based software.
In the listen section of that file you can specify IP addresses to listen:
listen {
ip <IP address to listen>
port <port to listen>
certkey <path to the file key of the SSL-certificate>
cert <path to the SSL-certificate's file>
}
The IPMI proxy via ihttpd module has been developed for DCImanager. In this connection, a new section — ipmiproxy — has been added:
ipmiproxy {
ipmiproxy_startport <Port range start>
ipmiproxy_endport <Port range end>
}
Example:
The built-in web-server will listen to all IPv4 addresses available using the default port ("*" equals "0.0.0.0")
listen {
ip *
}
The built-in web-server will listen to IPv4-address 5.6.7.8
listen {
ip 5.6.7.8
}
The built-in web-server will listen to IPv4-address 5.6.7.8 on port 1700
listen {
ip 5.6.7.8
port 1700
}
The built-in web-server will listen to IPv4-address 5.6.7.8 on port 1700 and the etc/my.crt file of the etc/my.key SSL certificate with the key for SSL requests (https)
listen {
ip 5.6.7.8
port 1700
certkey etc/my.key
cert etc/my.crt
}
The built-in web-server will listen to all IPv6 addresses available on the default port
listen {
ip ::
}
The built-in web-server will listen to IPv6-address 2001:db8::ae21:ad12 on port 1800
listen {
ip 2001:db8::ae21:ad12
port 1800
}
For the client with the address 5.6.7.8/24, access to 1.2.3.4/ispmgr is allowed, and for all others /ispmgr is prohibited:
listen {
ip 1.2.3.4
allow_ip ispmgr 5.6.7.8/24
}
For clients with the address in the range 5.6.7.8-5.6.7.88. access to 1.2.3.4/ispmgr is prohibited, and for all others /ispmgr is allowed.
listen {
ip 1.2.3.4
deny_ip ispmgr 5.6.7.8-5.6.7.88
}
After you have modified the ihttpd configuration file, restart the service:
CentOS 6:
/etc/init.d/ihttpd restart
CentOS 7, Debian 8:
systemctl restart ihttpd
By default COREmanager opens at
E.g. to open ISPmanager by default, create the file containing ispmgr
#cat /usr/local/mgr5/bin/index
ispmgr
Restart COREmanager
killall core
The connection remains active for one hour.