Document root on another PC

This is a discussion on Document root on another PC within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi! Using a windows 2000 Network I have got one PC containing all the documents for the internet. The Apache ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-28-2003
Kolja Engelmann
 
Posts: n/a
Default 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 "\\10.1.1.1/c$/wwwroot" using the default share
and it doesn't work that way
DocumentRoot "\\10.1.1.1/c/wwwroot"
BUT it works as soon as I use an alias...
Alias /xyz/ "\\10.1.1.1\c$\Inetpub\wwwroot"
I don't want to use a work around with mod rewrite aso. it must be possible
somehow, isn't it?

Thanks
Kolja


  #2 (permalink)  
Old 07-28-2003
patpro
 
Posts: n/a
Default Re: Document root on another PC

In article <bg2qmv$7nn$03$1@news.t-online.com>,
"Kolja Engelmann" <dragonslayerde@t-online.de> wrote:

> 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 "\\10.1.1.1/c$/wwwroot" using the default share
> and it doesn't work that way
> DocumentRoot "\\10.1.1.1/c/wwwroot"
> BUT it works as soon as I use an alias...
> Alias /xyz/ "\\10.1.1.1\c$\Inetpub\wwwroot"
> I don't want to use a work around with mod rewrite aso. it must be possible
> somehow, isn't it?


you should mount the disk containing data on the server (using samba may
work, NFS will work) and use le path to the mounting point, not the IP
to the remote server. (and, well, it's an absolutely stupid way of
serving http...
Other solution : turn on the personal web sharing of the PC hosting the
data, and set your apache to use mod_proxy so that request to
http://apache_ip/ will fetch http://data_host/

patpro
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:55 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0