-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directories and files are shown twice #59
Comments
Compiled the latest git and updated my system, still the same problem: Environment:
|
Could you possibly make this server accessible me, so I can investigate? Alternatively, could you tell me the server's configuration, please? |
Sure, i sent you a login to your gmail account. Thanks a bunch for your time :-) |
I think i found it, it's one of those options in my apache2.6 .htacces: Options +Indexes |
It's the IconsAreLinks option. So there is a workaround: Remove IconsAreLinks option from IndexOptions. |
If you look at the source code of the html, before you changed the settings, you can see that the links appear twice. I suppose I can work on removing duplicated links. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
--
| <html>
| <head>
| <title>Index of /</title>
| </head>
| <body>
| <h1>Index of /</h1>
| <table>
| <tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
| <tr><th colspan="5"><hr></th></tr>
| <tr><td valign="top"><a href="dokus/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="dokus/">dokus/</a></td><td align="right">2021-03-28 00:33 </td><td align="right"> - </td><td> </td></tr>
| <tr><td valign="top"><a href="ebooks/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="ebooks/">ebooks/</a></td><td align="right">2021-03-24 11:19 </td><td align="right"> - </td><td> </td></tr>
| <tr><td valign="top"><a href="filme/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="filme/">filme/</a></td><td align="right">2021-03-31 10:27 </td><td align="right"> - </td><td> </td></tr>
| <tr><td valign="top"><a href="games/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="games/">games/</a></td><td align="right">2020-11-15 16:41 </td><td align="right"> - </td><td> </td></tr>
| <tr><td valign="top"><a href="learning/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="learning/">learning/</a></td><td align="right">2021-03-24 15:59 </td><td align="right"> - </td><td> </td></tr>
| <tr><td valign="top"><a href="musik/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="musik/">musik/</a></td><td align="right">2021-03-22 09:40 </td><td align="right"> - </td><td> </td></tr>
| <tr><td valign="top"><a href="serien/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="serien/">serien/</a></td><td align="right">2021-03-31 19:57 </td><td align="right"> - </td><td> </td></tr>
| <tr><td valign="top"><a href="system/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="system/">system/</a></td><td align="right">2021-03-24 11:25 </td><td align="right"> - </td><td> </td></tr>
| <tr><td valign="top"><a href="tinyfilemanager/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="tinyfilemanager/">tinyfilemanager/</a></td><td align="right">2020-12-16 09:43 </td><td align="right"> - </td><td> </td></tr>
| <tr><th colspan="5"><hr></th></tr>
| </table>
| <address>Apache/2.4.46 (Debian) Server at tecneeq.cybercowboy.de Port 4711</address>
| </body></html> |
Cool, i'll leave the access for later testing for a few days. Thanks mate :-) |
It is okay, you can close the access now. I can configure my own apache to do the same thing. I probably won't have time to deal with this properly until I finish my PhD thesis anyways. |
Ok then. Good luck :-) |
@extreme-sysadminning , I know this is more than a year late, but I have fixed it. I think. Please test it out. At least it is working for the official Debian CD image server. |
I'm mounting a default apache dirlisting as a user, like so:
But strangely, every entry, be it file or directory, is listed twice (both work as expected):
My environment:
The text was updated successfully, but these errors were encountered: