Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache Document Root

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  IIS 6.0 server side redirection  
Author Message
user3381

External


Since: Dec 30, 2004
Posts: 4



(Msg. 1) Posted: Thu Dec 30, 2004 9:35 am
Post subject: Apache Document Root
Archived from groups: alt>apache>configuration (more info?)

Hi,

i am using OpenBSD 3.5 with Apache 1.3.29.
I have two Disks installed on the system wd0 and wd1

I have changed the Document Root from

DocumentRoot "var/www/htdocs" [/var is mounted on wd0]
to
DocumentRoot "pub/ftp/public" [/pub is mounted on wd1]

But when i try to access the Directory Listening on /public i get an 404
Error
With htdocs it work probably

For testing purpose i have set the permission to 0777 in the /pub Directory
recursivly. The Directory has also the same Owner and Group like
/var/www/htdocs

When i look into the log, Apace says "File does not exists: /pub/ftp/public.

Hm, what i am doing wrong?

Thanks for reading.... mabe you can help

best

Robert

PS: Here are the snips from /var/www/conf/http.conf

The / Directory
<Directory />
Options Indexes SymLinksIfOwnerMatch
AllowOverride None
</Directory>

The /pub/ftp/public Directory

<Directory /pub/ftp/public>
#//altes Verzeichnis Anfang
#<Directory "/var/www/htdocs">
#//altes Verzeichnis Ende

Options Indexes SymLinksIfOwnerMatch
AllowOverride None
Order allow,deny
Allow from all

</Directory>

 >> Stay informed about: Apache Document Root 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Dec 30, 2004 9:35 am
Post subject: Re: Apache Document Root [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-12-30, Singer Robert <robert.singer.TakeThisOut@gmx.at> wrote:
 > DocumentRoot "var/www/htdocs" [/var is mounted on wd0]
 > to
 > DocumentRoot "pub/ftp/public" [/pub is mounted on wd1]

If the DocumentRoot doesn't start with a "/" it's relative to the
ServerRoot. After changing the DocumentRoot you should also change
the <Directory> directive referring to the DocumentRoot.

Also, /pub and /pub/ftp have to be world-readable and world-executable

 ><Directory /pub/ftp/public>
 > #//altes Verzeichnis Anfang
 > #<Directory "/var/www/htdocs">

Note: "/var/www/htdocs" with ".

Davide

--
Move along, move along, nothing to see here, definitely no evil mind
control software here, move along, move along...
--Thorf<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache Document Root 
Back to top
Login to vote
user3381

External


Since: Dec 30, 2004
Posts: 4



(Msg. 3) Posted: Thu Dec 30, 2004 1:35 pm
Post subject: Re: Apache Document Root [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hm, that was a typo from me trough copy and paste...

it begins with

DocumentRoot=/var/www/htdocs
changed to

/pub/ftp/public

but i figured out that the ServerRoot Variable runs under /var/www

so i will change the Server Root to /pub/ftp/public and copy the
/var/www/htdocs, /var/www/manual and /var/www/conf to the /pub/ftp/public

hopefully this will work, or? Maybe if that do not work, i will disable the
chroot with the -u Flag on startup of the httpd.....

what do you thing??



"Davide Bianchi" <davideyeahsure.TakeThisOut@onlyforfun.net> schrieb im Newsbeitrag
news:slrnct812s.1ue.davideyeahsure@fogg.onlyforfun.net...
 > On 2004-12-30, Singer Robert <robert.singer.TakeThisOut@gmx.at> wrote:
  > > DocumentRoot "var/www/htdocs" [/var is mounted on wd0]
  > > to
  > > DocumentRoot "pub/ftp/public" [/pub is mounted on wd1]
 >
 > If the DocumentRoot doesn't start with a "/" it's relative to the
 > ServerRoot. After changing the DocumentRoot you should also change
 > the <Directory> directive referring to the DocumentRoot.
 >
 > Also, /pub and /pub/ftp have to be world-readable and world-executable
 >
  > ><Directory /pub/ftp/public>
  > > #//altes Verzeichnis Anfang
  > > #<Directory "/var/www/htdocs">
 >
 > Note: "/var/www/htdocs" with ".
 >
 > Davide
 >
 > --
 > Move along, move along, nothing to see here, definitely no evil mind
 > control software here, move along, move along...
 > --Thorf<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache Document Root 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Thu Dec 30, 2004 1:35 pm
Post subject: Re: Apache Document Root [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-12-30, Singer Robert <robert.singer.TakeThisOut@gmx.at> wrote:
 > but i figured out that the ServerRoot Variable runs under /var/www
 > so i will change the Server Root to /pub/ftp/public and copy the

No, don't do that. The server Root is used to locate things like
modules.

 > hopefully this will work, or? Maybe if that do not work, i will disable the
 > chroot with the -u Flag on startup of the httpd.....

Ah! You are running apache in a chroot environment, maybe /put/ftp
is not in the chroot then.

Davide

--
Blackmail Error:
Send $200 to Bill Gates or your computer will get so messed up it will never
work again.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache Document Root 
Back to top
Login to vote
user3381

External


Since: Dec 30, 2004
Posts: 4



(Msg. 5) Posted: Thu Dec 30, 2004 2:35 pm
Post subject: Re: Apache Document Root [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hmmm...

i have changed the ServerRoot to /pub/ftp/public... but when i look into the
error log i see that apache is running with /var/www

[Thu Dec 30 19:53:00 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Dec 30 19:54:27 2004] [error] [client 127.0.0.1] File does not exist:
/htdocs/server-status
[Thu Dec 30 19:57:30 2004] [notice] caught SIGTERM, shutting down
[Thu Dec 30 20:03:28 2004] [notice] Initializing etag from
/var/www/logs/etag-state
[Thu Dec 30 20:03:28 2004] [notice] chrooted in /var/www
[Thu Dec 30 20:03:28 2004] [notice] changed to uid 67, gid 67
[Thu Dec 30 20:03:28 2004] [notice] Apache/1.3.29 (Unix) mod_ssl/2.8.16
OpenSSL/0.9.7c configured -
- resuming normal operations

that confuses me...


[Thu Dec 30 20:03:28 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)

"Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> schrieb im Newsbeitrag
news:slrnct8fit.13s.davideyeahsure@fogg.onlyforfun.net...
 > On 2004-12-30, Singer Robert <robert.singer.RemoveThis@gmx.at> wrote:
  > > but i figured out that the ServerRoot Variable runs under /var/www
  > > so i will change the Server Root to /pub/ftp/public and copy the
 >
 > No, don't do that. The server Root is used to locate things like
 > modules.
 >
  > > hopefully this will work, or? Maybe if that do not work, i will disable
the
  > > chroot with the -u Flag on startup of the httpd.....
 >
 > Ah! You are running apache in a chroot environment, maybe /put/ftp
 > is not in the chroot then.
 >
 > Davide
 >
 > --
 > Blackmail Error:
 > Send $200 to Bill Gates or your computer will get so messed up it will
never
 > work again.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache Document Root 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 6) Posted: Thu Dec 30, 2004 2:35 pm
Post subject: Re: Apache Document Root [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-12-30, Singer Robert <robert.singer.RemoveThis@gmx.at> wrote:
 > [Thu Dec 30 20:03:28 2004] [notice] chrooted in /var/www

Yeah, this is the problem.

  >> Ah! You are running apache in a chroot environment, maybe /pub/ftp
  >> is not in the chroot then.

Davide

--
Coming soon: Visual Edlin for Windows.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache Document Root 
Back to top
Login to vote
user3381

External


Since: Dec 30, 2004
Posts: 4



(Msg. 7) Posted: Thu Dec 30, 2004 2:35 pm
Post subject: Re: Apache Document Root [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

AHHH it worked... listen...

i changed the i copied the files under /var/www with scp -pr to
/pub/ftp/public

then i modified the entries in /pub/ftp/public/conf/httpd.conf

ServerRoot=/pub/ftp/public

DocumentRoot=/pub/ftp/public/htdocs

....after that i eliminatet the processes i found with ps -aux that belong to
httpd + 5child objects

then i restarted httpd with /usr/sbin/httpd

NOW the APACHE is running chrooted under /pub/ftp/public..... an i can put
now files on it ... this harddrive is bigger....

Puff!!!!! but i remember the way know!!!

thanks for your audience!!!!

best

Robert
"Davide Bianchi" <davideyeahsure RemoveThis @onlyforfun.net> schrieb im Newsbeitrag
news:slrnct8hri.13a.davideyeahsure@fogg.onlyforfun.net...
 > On 2004-12-30, Singer Robert <robert.singer RemoveThis @gmx.at> wrote:
  > > [Thu Dec 30 20:03:28 2004] [notice] chrooted in /var/www
 >
 > Yeah, this is the problem.
 >
   > >> Ah! You are running apache in a chroot environment, maybe /pub/ftp
   > >> is not in the chroot then.
 >
 > Davide
 >
 > --
 > Coming soon: Visual Edlin for Windows.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache Document Root 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Document Root - Hi all, I am having a problem with setting the document root on my Linux box. I have updated DocumentRoot to &lt;DocumentRoot "/var/www/html/website"&gt; along with &lt;Directory "/var/www/html/website"&gt; ...

document root - hi, my document root is var/www/html but all the files apache is serving is in /usr/local/apache2/htdocs whats going on?? on a seperate issue, how can i check if ive installed 2 copies of apache. ie it came with the installation, then i downloded the..

Document root on another PC - Hi! Using a windows 2000 Network I have got one PC containing all the documents for the internet. The Apache is installed on another PC and I wanted to set the DocumentRoot to the location at the Doecument Server...it doesn't work this way: DocumentRoot....

Document Root on Windows Share - All, I am trying to setup a redundant pair of apache servers that will have external failover control in case one machine goes down. Basically, I have two apache servers that will be configured identically and I want the document root for both servers....

Virtual host / document root - I am attempting to set up virtual hosts in apache2triad on win xp for local development but when I point my browser to my-domain.com I never go to my index.htm file but to the htdocs dir. Here is the httpd set up, could anyone tell me what's wrong with...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]