You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nick Black <ni...@gmail.com> on 2007/02/05 09:57:51 UTC
[users@httpd] Web directory structure and redirects
Hello,
I've got this sort of thing to work before, but I just cant make it
happed this time round. I have:
/var/www/foo.com/spler/index.html
/varwww/foo.com/blah/images
DocumentRoot /var/www/foo.com/spler
So when a web browser is pointed at foo.com - the spler/index.html is
displayed. But because DocumentRoot is /var/www/foo.com/spler , its
isnt possible to acces files in blah/images.
I'd like users to access blah/images, through a url:
http://www.foo.com/blah/images
But I also want
http://www.foo.com
To display the index.html contained in spler/ . So I should be able to use:
Alias images/ var/www/foo.com/blah/images/
But I cant - the redirect just doesnt seem to happen. The access log
and error logs show nothing.
Do I need to change the directory sturcture, or can I use some
redirects to achieve my goals?
Thanks in advance,
--
Nick Black
--------------------------------
http://www.blacksworld.net
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org