httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Black" <nickbla...@gmail.com>
Subject [users@httpd] Web directory structure and redirects
Date Mon, 05 Feb 2007 08:57:51 GMT
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


Mime
View raw message