General discussion

Locked

Serving Files Outside the Apache Root

By stilckdv ·
Should I use Alias, Redirect, or do I need to set up a Virtual Host situation?

Apache/1.1.33(Win32)mod_perl/1.29_01-dev

Running on an XP machine which recieves My DSL via Bellsouths' Westell External Modem. XP then connects My LAN(three machines) to the Internet via ICS. The folders I need to access are on \\WorkStation2\E .

I've tried several Aliasing schemes including Mapping the Network Drive to the Local machine, and aliasing by the corresponding Drive Letter
to no avail.
This IS to be "Members Only"!
MySite: http://cksPlace.dns2go.com

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Jaqui In reply to Serving Files Outside the ...

why not the simple method of using the documenroot?

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "[ip number most effective]/E:/"

Collapse -

by stilckdv In reply to

Poster rated this answer.

Collapse -

by stilckdv In reply to Serving Files Outside the ...

Perhaps I needed to be more explicit. My DocumentRoot is

C:\Program Files\Apache Group\Apache\htdocs

Did You visit My Site? This is where the webpages reside, with the correspondant content in subfolders. I am needing to Serve the files on the Network Drive as content as well, and it's Far too much to simply move under the DocumentRoot.

I see the validity of Your suggestion, and if no other solution exists, it May be a viable option to move All content to where sufficient Hard Drive space is available. Although I do hope to find a way to work it out as I have it set up now.

Collapse -

by Jaqui In reply to Serving Files Outside the ...

a virtual host container will allow a different document root.

or, if your pages are all on the other drive, change the document root to be there.
it does NOT have to be the htdocs in the apache tree.

Collapse -

by stilckdv In reply to

I'm afraid there IS no Easy anwser for this. In My Humble opinion, it's best the DocumentRoot remain on the Host Machine. The XP Pro on the Host machine provides a relativly stable environment for Apache.

Collapse -

by stilckdv In reply to Serving Files Outside the ...

I Greatly appreciate Your efforts but, let's step away Slowly from the Docroot. I'm Very new to using an Apache Server, or Any "Real" Webserver for that matter! I have managed to stumble along and get a Working setup online, but due to having two Win98SE, and one WinME machines comprizing My LAN, it tends to be a bit shaky at times. Therefore I have grave concerns about changing the Docroot to the WinME, where the files I'd like to have access to reside, for the fact that Any Network problem would take down the entire site.

Collapse -

by stilckdv In reply to Serving Files Outside the ...

The Server and DocumentRoot currently reside on the XP Pro Machine, with the External Modem forwarding the IP address to it. If possible, or desired, I may be contacted as stilckdv on Yahoo IM, Eastern Time.

Collapse -

by Jaqui In reply to Serving Files Outside the ...

then put the files into a public_html folder
( the user dir option )
this way apache will access them as long as the correct user is in the uri

or else create symlinks in the htdocs and allow follow symlinks.
( symlink = shortcut )

Collapse -

by Jaqui In reply to

this is using the directory container to point to a specific location for apache to use as default website.

#
<Directory "path/to/documents/to/be/served">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

Back to Networks Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums