Whilst others may think that is a bit pointless, it's fine for me. The issue here is not the chroot, or the location I like to put my web content, it's permissions and I can't see the relevance in the points you made - sorry. I have figured out the issue, and for anyone else who might be interested, then check out the man page for 'security'.
Thanks for your input though.
-------- Original Message --------
Subject: Re: HELP! My HTTPD website keeps breaking because the custom directory/user permissions are being reverting for some reason!
Local Time: May 29, 2017 2:49 AM
UTC Time: May 29, 2017 12:49 AM
From: erling.westenvik@gmail.com
To: techay@protonmail.com
misc@openbsd.org <misc@openbsd.org>
On Sun, May 28, 2017 at 08:13:13PM -0400, techay@protonmail.com wrote:
> I need to use the regular /var/www/htdocs for my site
>
> Such a strange issue
I think that "need" of yours is the strangest issue here. It is /var/www
that becomes the root directory when httpd/nginx/apache is chroot'ed,
not htdocs. The latter is just an arbitrary location.
You should be able to:
# cp -Rp /var/www/htdocs /var/www/mysite
Then replace all [relevant] occurences of "htdocs" to "mysite" in
/etc/httpd.conf and in your files. It your site doesn't survive this,
you're probably having other problems than file permissions.
Show us your /etc/httpd.conf as a minimium.
> Probably (not sure because you didn't care to say which version you're
> running) because you upgraded to a newer snapshots. Use another
> directory (one that doesn't come in the sets) if you want to do that.
--
Erling Westenvik
No comments:
Post a Comment