ServerName localhost
LogLevel debug
<VirtualHost *:80>
ServerName site.com
ServerAlias site.com
DocumentRoot /var/www/site.com/public
ErrorLog /var/www/site.com/storage/logs/error.log
CustomLog /var/www/site.com/storage/logs/requests.log combined
</VirtualHost>
127.0.0.1 localhost localhost.localdomain
::1 localhost localhost.localdomain
httpd_anon_write --> off
httpd_builtin_scripting --> on
httpd_can_check_spam --> off
httpd_can_connect_ftp --> off
httpd_can_connect_ldap --> off
httpd_can_connect_mythtv --> off
httpd_can_connect_zabbix --> off
httpd_can_network_connect --> on
httpd_can_network_connect_cobbler --> off
httpd_can_network_connect_db --> on
httpd_can_network_memcache --> off
httpd_can_network_relay --> off
httpd_can_sendmail --> off
httpd_dbus_avahi --> off
httpd_dbus_sssd --> off
httpd_dontaudit_search_dirs --> off
httpd_enable_cgi --> on
httpd_enable_ftp_server --> off
httpd_enable_homedirs --> off
httpd_execmem --> off
httpd_graceful_shutdown --> on
httpd_manage_ipa --> off
httpd_mod_auth_ntlm_winbind --> off
httpd_mod_auth_pam --> off
httpd_read_user_content --> off
httpd_run_ipa --> off
httpd_run_preupgrade --> off
httpd_run_stickshift --> off
httpd_serve_cobbler_files --> off
httpd_setrlimit --> off
httpd_ssi_exec --> off
httpd_sys_script_anon_write --> off
httpd_tmp_exec --> off
httpd_tty_comm --> off
httpd_unified --> on
httpd_use_cifs --> off
httpd_use_fusefs --> off
httpd_use_gpg --> off
httpd_use_nfs --> off
httpd_use_openstack --> off
httpd_use_sasl --> off
httpd_verify_dns --> on
# ls -Z /etc/resolv.conf
-rw-r--r--. root root system_u:object_r:named_conf_t:s0 /etc/resolv.conf
systemctl restart httpd
type=AVC msg=audit(1542809616.079:69963): avc: denied { read } for pid=13300 comm="httpd" name="hosts" dev="vda1" ino=127 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file
type=SYSCALL msg=audit(1542809616.079:69963): arch=c000003e syscall=2 success=no exit=-13 a0=7fdd7bc5b54e a1=80000 a2=1b6 a3=24 items=0 ppid=13293 pid=13300 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
sestatus -b | grep httpd_unified
httpd_unified on
type=CRED_REFR msg=audit(1542810185.817:234): pid=1045 uid=0 auid=0 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_unix acct="root" exe="/usr/sbin/sshd" hostname=89.207.93.112 addr=89.207.93.112 terminal=ssh res=success'
type=AVC msg=audit(1542810211.789:235): avc: denied { getattr } for pid=931 comm="httpd" path="/etc/resolv.conf" dev="vda1" ino=4839 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:named_conf_t:s0 tclass=file
type=SYSCALL msg=audit(1542810211.789:235): arch=c000003e syscall=4 success=no exit=-13 a0=7f87b874b7b5 a1=7fff63c77360 a2=7fff63c77360 a3=3 items=0 ppid=804 pid=931 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
type=PROCTITLE msg=audit(1542810211.789:235): proctitle=2F7573722F7362696E2F6874747064002D44464F524547524F554E44
type=AVC msg=audit(1542810211.790:236): avc: denied { read } for pid=931 comm="httpd" name="resolv.conf" dev="vda1" ino=4839 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:named_conf_t:s0 tclass=file
type=SYSCALL msg=audit(1542810211.790:236): arch=c000003e syscall=2 success=no exit=-13 a0=7f87b874b7b5 a1=80000 a2=1b6 a3=24 items=0 ppid=804 pid=931 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
type=PROCTITLE msg=audit(1542810211.790:236): proctitle=2F7573722F7362696E2F6874747064002D44464F524547524F554E44
type=AVC msg=audit(1542810211.790:237): avc: denied { read } for pid=931 comm="httpd" name="hosts" dev="vda1" ino=127 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file
type=SYSCALL msg=audit(1542810211.790:237): arch=c000003e syscall=2 success=no exit=-13 a0=7f87a9e9b54e a1=80000 a2=1b6 a3=24 items=0 ppid=804 pid=931 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
type=PROCTITLE msg=audit(1542810211.790:237): proctitle=2F7573722F7362696E2F6874747064002D44464F524547524F554E44