I've gone through the ArchWiki article on setting up Nginx in a chroot, but am having no luck. When it comes time to start nginx via systemd, I get the error that "/usr/bin/chroot: invalid user". To be honest, this is the first time I've played arond with doing a chroot other than during installation processes.
Any idea where to start? What info do I need to give to help figure things out.
Last edited by jamgood96 (2013-02-20 11:20:41)
Not sure if it's headway, and not quite sure I understand why it matters, but if I edit the nginx.service file described in the ArchWiki article, and I replace http:http with 33:33, it no longer says invalid user. But now I get "/usr/bin/chroot: failed to run command ‘/usr/sbin/nginx’: Permission denied" instead.
Yeah, it helps to check the mounting flags in your fstab... Had noexec, which I believe was the root of my problem.
For future reference, I used a similar command to "strace -f -o /tmp/nginx.strace chroot /nginx /usr/local/nginx/sbin/nginx -t" which seemed to help a bit.