httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Directory Configuration
Date Sat, 16 Nov 2002 02:06:17 GMT

On Fri, 15 Nov 2002, Evje wrote:
> A person has his webpages in a directory on http://www.xyz.com (in
> htdocs)(no domain name so no VirtualHost involved).
>
> The url is as follows:
> http://www.xxx.com:8080/directoryname/index/abcd.html (don't ask me
> why??)
>
> How can I set up the directory in Apache httpd config to go to this url
> http://www.xyz.com:8080/directoryname/ without the directory listing
> showing and without having to add the /index/abcd.html
>
> I tried the following and it still shows the directory contents.
>
> <Directory "C:/Apache2/htdocs/directoryname">
>      DirectoryIndex index/abcd.html

That's odd.  Perhaps relative paths don't work.  Two alternatives:
DirectoryIndex /directoryname/index/abcd.html
or
AliasMatch ^/directoryname/$ "c:/Apache2/htdocs/directoryname/index/abcd.html"

Joshua.


---------------------------------------------------------------------
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