Visit Jeremy's Blog.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 09-22-2005, 06:07 AM   #1
Registered: Dec 2004
Location: Slovenia
Distribution: Slackware and OpenBSD
Posts: 87

Rep: Reputation: 15
Changing document root in Apache on OpenBSD 3.8


I have an smaller server, with 3g disk space . On it I redirected an subdomenin from some other server.
Everything go perfect, since now, when I fill an /var/ partition on the server.

Now I don't have any more place to store files, so i change documentroot in httpd.conf in /home/klemen/www/ (befor it was default /var/www/htdocs).

I cahange it only in httpd.conf (i have only that redirected subdomanin on the server, so I didn't make my own dns-servers).

After the change and rebooting i get:

The requested URL / was not found on this server.

What do I have to change that the files in /home/klemen/www/ will be visable on the subdomain? (exept two options in httpd.conf) ?

thanks klemen
Old 09-22-2005, 08:28 PM   #2
Registered: Feb 2004
Location: UK
Distribution: RHEL5/6, Solaris 10/11, NetBSD, OpenBSD, FreeBSD, MacOS
Posts: 223

Rep: Reputation: 42

On OpenBSD, apache runs chrooted by default, so it will not even be able to see /home.

man httpd
should tell you everything you need to know.

The man pages for OpenBSD are vrey good, and are the definitive guide to the operating system (the OBSD crew's words, not mine) and you really should try to read them.


Old 09-23-2005, 03:56 AM   #3
Registered: Dec 2004
Location: Slovenia
Distribution: Slackware and OpenBSD
Posts: 87

Original Poster
Rep: Reputation: 15
Thank you. I forgot for default chrooting. That was the problem.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache - change document root? squall14716 Linux - Software 2 01-20-2010 11:16 AM
changing permissions of document root and cgi-bin abtimoteo Ubuntu 2 08-13-2005 10:36 AM
Apache 2: won't allow document root to be changed, plus more QtCoder Linux - Networking 1 11-06-2004 05:44 PM
Document Root in Apache Hal Linux - Newbie 2 10-28-2003 07:10 AM
Apache Document Root Path bowen Linux - General 8 11-29-2002 03:13 AM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration