Configuring Nginx as a reverse proxy for Apache

Soldato
Joined
18 May 2010
Posts
22,376
Location
London
I've been playing around with this:


I have it all working but my issue is SELinux.

With SELinux turned off it all works, with it turned on it is not.

cat /etc/audit/audit.log

type=AVC msg=audit(1531598743.425:558): avc: denied { name_connect } for pid=17746 comm="nginx" dest=8080 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:http_cache_port_t:s0 tclass=tcp_socket
type=AVC msg=audit(1531598743.425:559): avc: denied { name_connect } for pid=17749 comm="nginx" dest=8080 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:http_cache_port_t:s0 tclass=tcp_socket
type=USER_AVC msg=audit(1531599061.146:560): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: received policyload notice (seqno=2) exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'

Any ideas how I fix this?

---

I'm giving this a go now.

^ This worked.
 
Last edited:
Back
Top Bottom