Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a default OpenBSD 5.1 install. How Can I enabled httpd, OK.

QUESTION: How can I use the

/dev/sd0a on /mnt/usbhdd type ffs (local, nodev)

instead of the default "/var/www" directory? What are the most secure mount options (for a webservers that only servers static html/files)?

share|improve this question
5  
Either mount /dev/sd0a to /var/www or configure your web server to use /mnt/usbhdd instead of /var/www. –  Marco Oct 29 '12 at 11:41
    
"mount /dev/sd0a to /var/www" - :D thanks, afaik this will be the thing :) .. but if I do this, no other things needed?? only mount to /var/www and use it with good user/group? nothing else? –  gasko peter Oct 29 '12 at 17:07

1 Answer 1

up vote 1 down vote accepted

Either mount /dev/sd0a to /var/www or configure your web server to use /mnt/usbhdd instead of /var/www. – Marco Oct 29 '12 at 11:41

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.