LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

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

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


Hello

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, 07:28 PM   #2
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL5/6, Solaris 10/11, NetBSD, OpenBSD, FreeBSD, MacOS
Posts: 221

Rep: Reputation: 40
Hi,

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

Code:
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.

Cheers,

Steve
 
Old 09-23-2005, 02:56 AM   #3
klemen
Member
 
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.

by
 
  


Reply


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 10:16 AM
changing permissions of document root and cgi-bin abtimoteo Ubuntu 2 08-13-2005 09:36 AM
Apache 2: won't allow document root to be changed, plus more QtCoder Linux - Networking 1 11-06-2004 04:44 PM
Document Root in Apache Hal Linux - Newbie 2 10-28-2003 06:10 AM
Apache Document Root Path bowen Linux - General 8 11-29-2002 02:13 AM


All times are GMT -5. The time now is 09:36 AM.

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