Questions tagged [mod-autoindex]

36 questions
15
votes
1 answer

What is apache autoindex and should I disable it?

I have a 3rd party client who did a PCI scan on their site. The report returned this: web server autoindex enabled What is this and is it safe to disable it? Does anyone know the safest way to disable it, and how I can check it has been disabled?
symlink
  • 11,984
  • 7
  • 29
  • 50
12
votes
2 answers

Apache directory listing as json

Is it possible to have the directory listing in apache return json instead of html? I'm completely unexperienced with Apache, but I've browsed the documentation for IndexOptions and mod_autoindex. It seems like there's no built in way to configure…
Rjoss
  • 123
  • 1
  • 5
8
votes
3 answers

How can I force autoindex and ignore index.html files

When nginx serves a directory with autoindex, it will list files, but when index.html exists, the browser will load that file. I want it to ignore it. server { listen 80; server_name herbert; location / { root /srv/www; …
caduceus
  • 1,542
  • 2
  • 16
  • 21
5
votes
2 answers

How to style Directory Listings with Apache Mod_autoindex using NameWidth & HTMLTable?

I am trying to adjust NameWidth while using HTMLTable but without success. Consider these settings (# = comment): IndexOptions FancyIndexing IndexOptions HTMLTable IndexOptions IconsAreLinks IndexOptions…
JDW
  • 115
  • 1
  • 8
4
votes
1 answer

How to control mod_autoindex header to insert tags?

My web server used mod_autoindex to give access to a directory of downloadable files. How can I make the generated html include my own tags in the header section? P.S. What I really want is to insert a viewport tag to help prevent Google…
jimav
  • 671
  • 6
  • 16
4
votes
2 answers

Set IndexIgnore inside httpd.conf

I want to prevent directory file listing in all of my folders, so when a user types http://example.com/thisDoesNotExists/, the directory file listing do not show up. According to a tutorial all I have to do is set IndexIgnore * I try to set it in…
slevin
  • 4,166
  • 20
  • 69
  • 129
4
votes
3 answers

Change nginx autoindex output format

I want to share folder contents over http. I've installed nginx with autoindex on and configured it to my folder. The problem is it takes me html file with file/folder list, but I want some kind of xml with same information. Is it possible to do it…
Victor Haydin
  • 3,518
  • 2
  • 26
  • 41
3
votes
2 answers

.htaccess code to deny folder browsing

Can you please tell me how to deny folder browsing using .htaccess file
mrN
  • 3,734
  • 15
  • 58
  • 82
3
votes
1 answer

ProxyPassMatch and Options +Indexes (mod_autoindex)

I have a simple setup with Apache2.4 and PHP-FPM and I am trying to enable +Indexes option but I get 404 "File not found." when trying to access a folder that doesn't have an index file even when autoindex is enabled. Here's part of my…
nforced
  • 361
  • 3
  • 14
2
votes
1 answer

Apache AutoIndex and Python PEP 503

I am trying to set up a simple Python repository based on these instructions. I have created the required directory structure, but pip won't find any versions. After looking deeper into the topic and referring to PEP 503 - Simple Repository API I…
Daniel
  • 1,398
  • 4
  • 20
  • 47
2
votes
2 answers

Password protecting AutoIndex but not static files with .htaccess

I have publicly accessible files on my webserver. I'd like to enable AutoIndexing (Options +Indexes) but I'd like to require a password in order to view these listings. I have no problem setting up the Auth but there are complications with the…
Jason Keene
  • 1,085
  • 3
  • 10
  • 20
2
votes
2 answers

mod_autoindex hides directories used for mod_proxy

I did set up two proxies using mod_proxy. However when I list all the directories in the root with mod_autoindex, it does not show the otherwise existent and empty dummy directories with the same name as the proxies, not even if I use…
Frigo
  • 1,709
  • 1
  • 14
  • 32
1
vote
1 answer

Replace mod_autoindex with PHP indexer in all directories without adding a index.php to all of them

I like the ability to automatically index a folder, so that I can serve a large number of files, without adding links to a page all the time. However I dislike the httpAuth login box that comes with using .htaccess to secure a directory. Plus there…
zeel
  • 1,101
  • 1
  • 13
  • 31
1
vote
1 answer

mod_rewrite preventing correct filetype icons from showing on mod_autoindex

I seem to have a problem which I've been struggling to solve. I'd love a bit of help here. I have a dump site where I am using mod_autoindex and FancyIndexing. I have my FancyIndexing icons defined in my .htaccess file. I also use mod_rewrite to…
Jcl
  • 27,696
  • 5
  • 61
  • 92
1
vote
0 answers

Apache directory listing - force show files first (in the same way as FoldersFirst)

I'd like to display an a-z list of files above and a-z list of folders. Without +FoldersFirst the listing is obviously an a-z mixed list of files and folders. Is there such a thing that can display an equivalent to a 'FilesFirst' directive? I can't…
Sara Weale
  • 11
  • 2
1
2 3