Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache does not link directories properly with autoindexing

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  ReWrite Rules  
Author Message
chriskarlen

External


Since: Jul 14, 2003
Posts: 2



(Msg. 1) Posted: Mon Jul 14, 2003 1:42 pm
Post subject: Apache does not link directories properly with autoindexing
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: Apache does not link directories properly with autoindexing 
Back to top
Login to vote
nospam173

External


Since: Jul 02, 2003
Posts: 52



(Msg. 2) Posted: Mon Jul 14, 2003 8:47 pm
Post subject: Re: Apache does not link directories properly with autoindexing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 14 Jul 2003 10:42:10 -0700, The Other Guy responded to a post from
chriskarlen.DeleteThis@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
<font color=purple> >work. If however, I put the "/" in and use <a style='text-decoration: underline;' href="http://www.test.com/dogs/terrier/</font" target="_blank">www.test.com/dogs/terrier/</font</a>>
 >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 <a style='text-decoration: underline;' href="http://httpd.apache.org/docs/misc/FAQ-E.html#set-servername" target="_blank">http://httpd.apache.org/docs/misc/FAQ-E.html#set-servername</a>
and also
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs/mod/core.html#servername." target="_blank">http://httpd.apache.org/docs/mod/core.html#servername.</a>

e.g.:
ServerName <a style='text-decoration: underline;' href="http://www.test.com" target="_blank">www.test.com</a>

Note from a post with a similar problem you do not use the <a style='text-decoration: underline;' href="http://" target="_blank">http://</a>
(i.e., <a style='text-decoration: underline;' href="http://www.test.com" target="_blank">http://www.test.com</a>) 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.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache does not link directories properly with autoindexing 
Back to top
Login to vote
chriskarlen

External


Since: Jul 14, 2003
Posts: 2



(Msg. 3) Posted: Thu Jul 17, 2003 1:57 pm
Post subject: Re: Apache does not link directories properly with autoindexing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The Other Guy <nospam.DeleteThis@this.addy> wrote in message news:<g0r5hv0lstl0sbn57n27oeku4td07cn5tl.DeleteThis@4ax.com>...
 > On 14 Jul 2003 10:42:10 -0700, The Other Guy responded to a post from
 > chriskarlen.DeleteThis@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
<font color=green>  > >work. If however, I put the "/" in and use <a style='text-decoration: underline;' href="http://www.test.com/dogs/terrier/</font" target="_blank">www.test.com/dogs/terrier/</font</a>>
  > >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.
<font color=purple> > See <a style='text-decoration: underline;' href="http://httpd.apache.org/docs/misc/FAQ-E.html#set-servername</font" target="_blank">http://httpd.apache.org/docs/misc/FAQ-E.html#set-servername</font</a>>
 > and also
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs/mod/core.html#servername.</font" target="_blank">http://httpd.apache.org/docs/mod/core.html#servername.</font</a>>
 >
 > e.g.:
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.test.com</font" target="_blank">www.test.com</font</a>>
 >
<font color=purple> > Note from a post with a similar problem you do not use the <a style='text-decoration: underline;' href="http://</font" target="_blank">http://</font</a>>
 > (i.e., <a style='text-decoration: underline;' href="http://www.test.com" target="_blank">http://www.test.com</a>) in front it, just the way the example
 > above shows it.
 >
 > HTH
 > TOG

Thanks! Worked perfectly.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache does not link directories properly with autoindexing 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Is Apache redirecting? - I'm using a self compiled copy of Apache 1.3.27 with ApacheSSL 1.48, SunONE ASP 3.6.1 (ChiliASP), and the Frontpage extensions v5. I had a difficult time getting these modules all working together, especially the Frontpage extensions. I have several..

Apache Cluster - Hiya all... Looking for some good how-to's, docs on the proper way to build a website with clustered/load-balanced apache servers. There's a lot of info out there and I'm not sure if one is better than the other. Could anyone recommend "industry....

ssl apache password - Hi ,I've Configured ssl on apache creating my own X509 certificate . my question is that when i reinitiate server it asks me certificate's password . I want to reinitiate server with cron daemon but it not works cause of this password . Any ideas ?...

problem with apache - Hi I have installed apache with mysql and php and I have the follow problem: [Fri Jul 11 10:21:31 2003] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [Fri Jul 11 10:21:31 2003] [crit]..

Proxy: can apache do this ? - Hi, I have an SuSE Linux box running apache 1.3.37, as supplied with SuSE. It is setup for both http and https, this works fine, and it is accessable to the internet in general. What I want to do it to have it act as a proxy re-director to enable me...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]