webapps-config
Configure MATLAB Web App Server from the command line on Windows, Linux, and macOS systems
Syntax
Description
webapps-config get returns the current MATLAB®
Web App Server™ configuration.
Examples
Get Current Server Configuration
To retrieve the current server configuration, at the system command line, type:
webapps-config get port: 9988
apps_path: C:\ProgramData\MathWorks\webapps\R2025b\apps
logs_path: C:\ProgramData\MathWorks\webapps\R2025b\logs
logging_level: normal
log_archive_max_size_mb: 50
log_rotation_size_mb: 10
maximum_sessions: 63
session_idle_timeout_minutes: 5
startup_timeout_seconds: 45
ssl_enabled: false
ssl_certificate_file:
ssl_private_key_file:Get Configuration Value for Specific Key
To retrieve a configuration value for a specific key, at the system command line, type:
webapps-config get port9988
Set Configuration Value for Specific Key
To set a configuration value for a specific key, at the system command line, type:
webapps-config set port 9999Successfully changed "port". Changes will be applied the next time the server is started.
Verify that the port has been changed.
webapps-config get port9999
Get Help for Specific Configuration Key
To get help for a specific configuration key, at the system command line, type:
webapps-config help logs_pathFolder where server logs are written
Enable SSL and Set Location to Certificate File and Private Key File
To enable SSL, at the system command line, type:
webapps-config set ssl_enabled truewebapps-config set ssl_certificate_file /home/user/my_server_certificate.pemwebapps-config set ssl_private_key_file /home/user/my_private_key.pem
Input Arguments
More About
Version History
Introduced in R2020a