You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Evje <se...@shawcable.com> on 2002/11/14 20:55:06 UTC
[users@httpd] Question
Hello;
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 the /index/abcd.html nonsense?
Thanks for the help in advance. Selmer Ausland
---------------------------------------------------------------------
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
Re: [users@httpd] Question
Posted by Joshua Slive <jo...@slive.ca>.
[Please use descriptive subject lines!]
On Thu, 14 Nov 2002, Evje wrote:
> Hello;
> 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 the /index/abcd.html nonsense?
I think what you want is
<Directory /path/to/docroot/directoryname>
DirectoryIndex index/abcd.html
</Directory>
You may also want to add
<Directory /path/to/docroot/directoryname/*>
DirectoryIndex index.html
</Directory>
to turn it back to normal in the subdirectories.
There are several other ways to do the same thing using
Alias/RewriteRule/etc, but I think that is the simplest.
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