|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
httpd.conf chroot
Hi!
I try to set the global chroot option in httpd.conf in openbsd 5.6 as said in the man page (httpd 8) but I get a syntax error. In httpd.conf: chroot /chroot/home Is this option removed or moved anywhere else? Thanks! Last edited by morophla; 19th April 2015 at 12:19 AM. |
|
|||
Yes, there's no more syntax error message with quotes but the server doesn't start this way. No error message but it doesn't start.
If I comment the chroot line the server works perfectly. The man page said we can use this option, but how? |
|
||||
You must provide the infrastructure required by httpd within the chroot. I recommend copying /var/www's directory structure into your /chroot/home -- you'll need a logs directory at minimum, and you may need other structures already found in /var/www. Copying all of them is probably easiest.
You can run httpd in a console with -d, for testing, and you can add one (or more ) -v options to produce debug output. Just in case you are not already aware of it ... there are reliability (#9) and security (#15) patches for httpd available for 5.6-release. |
|
|||
Ok, cool. The process starts and the chroot is moved!
Thanks! |
Tags |
httpd.conf chroot |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ftp jailing ftp-chroot | pico | OpenBSD Security | 4 | 30th March 2010 06:44 AM |
Chroot web-browsing | Oko | OpenBSD Security | 1 | 29th December 2008 01:37 PM |
Update httpd.conf IPs from DNS zones. | bigb89 | Programming | 16 | 2nd December 2008 02:02 AM |
httpd.conf | Snoop1990 | General software and network | 5 | 29th July 2008 04:30 AM |
apache 2.2.8 , is it on chroot by default? | superslot | OpenBSD Security | 9 | 30th June 2008 11:56 AM |