Search found 3 matches

by Dannymh
2014/12/09 09:14:47
Forum: CentOS 6 - Software Support
Topic: Stupidly ran chcon on public_html dir nginx now showing 404
Replies: 4
Views: 2139

Re: Stupidly ran chcon on public_html dir nginx now showing

Hi,

No luck, same results if I run that.

Also if I chown to theuser:theuser then nginx stops working for that directory.

Dan
by Dannymh
2014/12/09 00:48:02
Forum: CentOS 6 - Software Support
Topic: Stupidly ran chcon on public_html dir nginx now showing 404
Replies: 4
Views: 2139

Re: Stupidly ran chcon on public_html dir nginx now showing

So I think somehow that security change meant that I couldnt access files which were previously owned by the root user. nginx was looking under xginx:nginx for user/group. I chowned to this even though previously they were owned by user/user If this works fine, I will then need to rethink my ftp str...
by Dannymh
2014/12/09 00:01:44
Forum: CentOS 6 - Software Support
Topic: Stupidly ran chcon on public_html dir nginx now showing 404
Replies: 4
Views: 2139

Stupidly ran chcon on public_html dir nginx now showing 404

I was setting up FTP, and doing two things at once. On the wrong server I inadvertently ran chcon -Rv --type user_home_dir_t /home/userdir I meant to run this on /home/ftpuser however /home/userdir is my home directory of all my http content. Now that I have run this, nginx fails with 404 errors and...