Welcome! Log In Create A New Profile

Advanced

Re: nginx ignoring config file when started via systemd

December 08, 2015 07:18PM
Hi mex,

It was installed via the RHEL 7 repo.

I've managed to solve the issue, and so for anyone else experiencing this odd behavour the solution is to check the SELINUX file context.

My config was in a file that had "unconfined_u:object_r:var_t:s0" and it needed "unconfined_u:object_r:httpd_config_t:s0" so run "sudo restorecon -v /path/to/conf"

Otherwise nginx just silently ignores the file, and no error shows up in the audit.log file. (or disable SELINUX, but alas I can't)

Regards,
Daniel Sage
Subject Author Posted

nginx ignoring config file when started via systemd

theheadsage December 08, 2015 12:36AM

Re: nginx ignoring config file when started via systemd

mex December 08, 2015 01:28AM

Re: nginx ignoring config file when started via systemd

theheadsage December 08, 2015 07:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 312
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready