Bluehost.com Web Hosting $6.95

Apache does not link directories properly with autoindexing

This is a discussion on Apache does not link directories properly with autoindexing within the Apache Web Server forums, part of the Web Server and Related Forums category; I am running Slackware 9.0 and Apache 1.3.27. I am using Apache's autoindexing feature to list ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-14-2003
cdkarlen
 
Posts: n/a
Default Apache does not link directories properly with autoindexing

I am running Slackware 9.0 and Apache 1.3.27. I am using Apache's
autoindexing feature to list directories with large amounts of files
so I don't have to code the html myself. My problem is that when
Apache does this the directories do not have the "/" required at the
end of the directory name so when the directory link is clicked the
link appears broken.

e.g. Apache would display the following using autoindexing:
www.test.com/dogs/terrier where terrier is a directory. This does not
work. If however, I put the "/" in and use www.test.com/dogs/terrier/
it will work.

I can manually put the "/" in the address bar and then it will
properly traverse to the next directory, but I don't want to do this
or tell every person who accesses my web pages this. Any ideas or
solutions as to why Apache cannot differentiate between directories
and files when autoindexing? Thanks.

CK
  #2 (permalink)  
Old 07-14-2003
The Other Guy
 
Posts: n/a
Default Re: Apache does not link directories properly with autoindexing

On 14 Jul 2003 10:42:10 -0700, The Other Guy responded to a post from
chriskarlen@yahoo.com (cdkarlen) who wrote in
alt.apache.configuration:

>I am running Slackware 9.0 and Apache 1.3.27. I am using Apache's
>autoindexing feature to list directories with large amounts of files
>so I don't have to code the html myself. My problem is that when
>Apache does this the directories do not have the "/" required at the
>end of the directory name so when the directory link is clicked the
>link appears broken.
>
>e.g. Apache would display the following using autoindexing:
>www.test.com/dogs/terrier where terrier is a directory. This does not
>work. If however, I put the "/" in and use www.test.com/dogs/terrier/
>it will work.
>
>I can manually put the "/" in the address bar and then it will
>properly traverse to the next directory, but I don't want to do this
>or tell every person who accesses my web pages this. Any ideas or
>solutions as to why Apache cannot differentiate between directories
>and files when autoindexing? Thanks.
>
>CK



You may have to set a server name.
See http://httpd.apache.org/docs/misc/FA...set-servername
and also
http://httpd.apache.org/docs/mod/core.html#servername.

e.g.:
ServerName www.test.com

Note from a post with a similar problem you do not use the http://
(i.e., http://www.test.com) in front it, just the way the example
above shows it.

HTH
TOG


--
../configure --prefix=~/zyterion
Not this guy or that guy, The Other Guy.

This spot may contain a satirical comment or comedic source,
and is meant to be funny. If you are easily offended, gullible
or don't have a sense of humour we suggest you read elsewhere.
  #3 (permalink)  
Old 07-17-2003
cdkarlen
 
Posts: n/a
Default Re: Apache does not link directories properly with autoindexing

The Other Guy <nospam@this.addy> wrote in message news:<g0r5hv0lstl0sbn57n27oeku4td07cn5tl@4ax.com>. ..
> On 14 Jul 2003 10:42:10 -0700, The Other Guy responded to a post from
> chriskarlen@yahoo.com (cdkarlen) who wrote in
> alt.apache.configuration:
>
> >I am running Slackware 9.0 and Apache 1.3.27. I am using Apache's
> >autoindexing feature to list directories with large amounts of files
> >so I don't have to code the html myself. My problem is that when
> >Apache does this the directories do not have the "/" required at the
> >end of the directory name so when the directory link is clicked the
> >link appears broken.
> >
> >e.g. Apache would display the following using autoindexing:
> >www.test.com/dogs/terrier where terrier is a directory. This does not
> >work. If however, I put the "/" in and use www.test.com/dogs/terrier/
> >it will work.
> >
> >I can manually put the "/" in the address bar and then it will
> >properly traverse to the next directory, but I don't want to do this
> >or tell every person who accesses my web pages this. Any ideas or
> >solutions as to why Apache cannot differentiate between directories
> >and files when autoindexing? Thanks.
> >
> >CK

>
>
> You may have to set a server name.
> See http://httpd.apache.org/docs/misc/FA...set-servername
> and also
> http://httpd.apache.org/docs/mod/core.html#servername.
>
> e.g.:
> ServerName www.test.com
>
> Note from a post with a similar problem you do not use the http://
> (i.e., http://www.test.com) in front it, just the way the example
> above shows it.
>
> HTH
> TOG


Thanks! Worked perfectly.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:42 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0