ChrootDir and Symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I set: ChrootDir /var/www

I set: DocumentRoot /

I trimmed "/var/www" off my Directory entries (so "/var/www" went to "/", and "/var/www/html" went to "/html", etc).

But the only way I can get httpd to start is by creating a symlink in / to /var/www/<x>.

Conversely, I can leave DocumentRoot and Directory entries alone, but then I need to create a symlink in /var/www/var/www back to /var/www.

I can confirm the chroot is working via /proc/<pid>/root.

However, using symlinks feels a little hack-ish.  I feel like I might be missing something, or leaving my system vulnerable.

Can someone explain whether this setup is correct, and why symlinks are needed? Also, should entries like "Directory" and "Location" be pre-chroot or post-chroot?

Thanks.

Joseph D. Wagner


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux