KB Article #178521

selinux configuration for API Portal

Problem

- When running API Portal on RedHat with selinux policy set to enforcing, a 403 error is returned when connecting to API Portal.

- How to configure a system to make API Portal work with selinux policy set to enforcing?


Resolution

- You can run the following set of selinux configuration commands to make API Portal working with selinux:

setsebool -P httpd_read_user_content 1
setsebool -P httpd_can_network_connect 1
setsebool -P httpd_can_network_connect_db 1
setsebool -P httpd_unified 1
chcon -R -t httpd_sys_content_t /opt/axway/apiportal/htdoc/
semanage fcontext -a -t httpd_sys_rw_content_t '/opt/axway/apiportal/htdoc(/.*)?'
restorecon -R -v '/opt/axway/apiportal/htdoc'