On Mar 16 20:58:59, alan01...@gmail.com wrote:
> I don't have enough room in / to have my htdocs there so I want to
> move it to /usr/htdocs. This is in 5.7. No problem I thought, I've
> had to do it before. So my /etc/httpd.conf looks like this:
>
> chroot "/usr/htdocs"
Why din't you use he s
On Wed, Mar 16, 2016 at 8:58 PM, Alan Corey wrote:
> I don't have enough room in / to have my htdocs there so I want to
> move it to /usr/htdocs. This is in 5.7. No problem I thought, I've
> had to do it before. So my /etc/httpd.conf looks like this:
>
> chroot "/usr/htdocs"
It's probably supp
Bingo. /usr does it. One clue I guess was that it was logging into
/usr/logs. With Apache at least the chroot dir wasn't the same as the
document root. And you don't want the logs dir readable through the
httpd. So essentially there's htdocs and logs inside of what you
specify as a chroot dir.
I don't have enough room in / to have my htdocs there so I want to
move it to /usr/htdocs. This is in 5.7. No problem I thought, I've
had to do it before. So my /etc/httpd.conf looks like this:
chroot "/usr/htdocs"
server "d530.my.domain" {
listen on * port 80
}
And I get logging into /usr/
On Mar 16 22:04:19, alan01...@gmail.com wrote:
> Bingo. /usr does it. One clue I guess was that it was logging into
> /usr/logs. With Apache at least the chroot dir wasn't the same as the
> document root.
With default httpd, it also isn't.
> And you don't want the logs dir readable through the
> Your webserver should NOT be in /.
> Your /usr should not have 129G free.
> Your web server should not be in /usr.
In case your thinking does it matter beyond doing things correctly! What
sprang to my mind immediately is that those partitions won't have
things like nosuid,noexec settable without
Hi Alan,
On 2016-03-16 Wed 20:58 PM |, Alan Corey wrote:
> I don't have enough room in / to have my htdocs there so I want to
> move it to /usr/htdocs. This is in 5.7.
Re-install (5.8) with a better partitioning layout:
$ mount -d /var/www
exec: mount_ffs -o rw -o nodev -o nosuid -o noexec -o so
On 03/16/16 20:58, Alan Corey wrote:
> I don't have enough room in / to have my htdocs there so I want to
> move it to /usr/htdocs. This is in 5.7. No problem I thought, I've
> had to do it before. So my /etc/httpd.conf looks like this:
>
> chroot "/usr/htdocs"
hint: the default is /var/www.
8 matches
Mail list logo