Bluehost.com Web Hosting $6.95

aliasing - inheritance?

This is a discussion on aliasing - inheritance? within the Apache Web Server forums, part of the Web Server and Related Forums category; I have a large amount of data not within htdocs, which I want apache to serve to the public, One ...


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 08-10-2006
shimmyshack
 
Posts: n/a
Default aliasing - inheritance?

I have a large amount of data not within htdocs, which I want apache to
serve to the public,

One virtualhost is completely aliased to another drive

<VirtualHost 192.168.5.5:80>
ServerName domain.org
ServerSignature off
DocumentRoot /domain.org/public
Alias / "F:/file_store/files/"
</VirtualHost>

this works just fine provided I explicitly allow access to it using a
directory directive

<Directory "F:/file_store/files/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>



the difficulty came when I ran out of room on that drive and it just
happened that one of the folders below
F:/file_store
called F:/file_store/files/large_dir
could be moved to another drive
G:/moved/large-dir

which meant that I wanted to alias
F:/file_store/files/large_dir
to
G:/moved/large-dir

Ive tried Alias and AliasMatch

.....
Alias /large_dir "G:/moved/large-dir"
</VirtualHost>

.....
AliasMatch ^.*large_dir/?$ "G:/moved/large-dir"
</VirtualHost>

Try as I might I cannot find a configuration that works, for instance
creating a folder called -large_dir and then adding an alias into the
virtualhost container does allow me to go into that folder, but then
theres some kind of buffer overflow and I get booted back to G:/ and
then to the original F:/file_store/large_dir (I can see this using
filemon)

Of course in an ftp server one would just alias the physical path of
the moved folder to a folder with the name you wish the users to see,
and I thought it could be as simple as that under apache.

If you arent bored by the whole thing, like I am, and can see the wood
for the trees - Id be happy to hear from you!

m

 
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 11:56 PM.


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