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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |