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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |