This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
aix:nim_server_install [2022/01/26 10:08] manu |
aix:nim_server_install [2024/08/19 19:32] (current) manu [Enable NIM over http] |
||
---|---|---|---|
Line 161: | Line 161: | ||
# nimconfig -h | # nimconfig -h | ||
</cli> | </cli> | ||
+ | |||
+ | **Note:** The crypto or ssl setting is automatically discovered. | ||
+ | |||
+ | An example of the default httpd.conf configuration file follows: | ||
+ | <cli prompt='>'> | ||
+ | > cat /httpd.conf | ||
+ | # | ||
+ | # | ||
+ | #http service defines | ||
+ | # | ||
+ | # | ||
+ | service.name=nimhttp | ||
+ | # Designates the service name used when discovering the listening port for requests (i.e., nimhttp) | ||
+ | # | ||
+ | service.log=/var/adm/ras/nimhttp.log | ||
+ | #Log of access attempts and equivalent responses. Also useful for debug purposes. | ||
+ | # | ||
+ | # service.proxy_port= | ||
+ | #Designates the service portnumber used when configured as a proxy. | ||
+ | # | ||
+ | #--------------------------------------------------------------- | ||
+ | # http configuration | ||
+ | #--------------------------------------------------------------- | ||
+ | # | ||
+ | document_root=/export/nim/ | ||
+ | #Designates the directory to serve files from. | ||
+ | # | ||
+ | enable_directory_listing=yes | ||
+ | #Allow requests for listing served files/directories under the document root. | ||
+ | # | ||
+ | enable_proxy=no | ||
+ | #Enable the webservice to act as a proxy server. | ||
+ | # | ||
+ | ssl.cert_authority=/ssl_nimsh/certs/root.pem | ||
+ | #Designates the file location of the certificate authority used for digital certificate signing. | ||
+ | # | ||
+ | ssl.pemfile=/ssl_nimsh/certs/server.pem | ||
+ | #Designates the file location of the PEM format file which contains both a certificate and private key. | ||
+ | # | ||
+ | </cli> | ||
+ | |||
+ | **document_root path** | ||
+ | |||
+ | Files that are not defined as resource locations can be accessed by using the HTTP protocol. These files must be located in the path setting of the document_root. The defined document_root path location cannot be modified when the nimhttp service is operational. | ||
+ | |||
+ | The document_root path might contain many directories. When you set the enable_directory_listing option, client requests can travel the document_root path. If the **enable_directory_listing** option is set to value of no, all files that are used during the installation must be located in the current working directory of the document_root path. | ||
Disabling the nimhttp service on the NIM server | Disabling the nimhttp service on the NIM server | ||
Line 189: | Line 235: | ||
* script | * script | ||
+ | Log file: | ||
+ | /var/adm/ras/nimhttp.log | ||
+ | | ||
+ | === Client command === | ||
+ | |||
+ | Use 3x - to specify and update using nimhttp | ||
+ | <cli prompt='#'> | ||
+ | nimclient –o cust –a lpp_source=<obj_name> ---a fixes=update_all | ||
+ | </cli> | ||
+ | |||
+ | https://www.ibm.com/docs/en/aix/7.2?topic=cnmcbir-using-nim-installing-aix-updates-new-packages-over-http-protocol | ||
+ | https://www.linkedin.com/pulse/yum-nimhttp-armin-schmidt | ||