15 lines
228 B
Markdown
15 lines
228 B
Markdown
|
|
# SELinux
|
|
|
|
## Nginx
|
|
```
|
|
# Allow open local port
|
|
semanage port -a -t http_port_t -p tcp 28081
|
|
|
|
# Allow open remote port
|
|
setsebool -P httpd_can_network_connect 1
|
|
|
|
# Allow open file in dir
|
|
chcon -R -t httpd_sys_content_t dir
|
|
```
|